remove extra space
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ async function checkPreconditions(backupConfig, dataLayout) {
|
||||
used += parseInt(result, 10);
|
||||
}
|
||||
|
||||
debug(`checkPreconditions: total required =${used} available=${df.available}`);
|
||||
debug(`checkPreconditions: total required=${used} available=${df.available}`);
|
||||
|
||||
const needed = 0.6 * used + (1024 * 1024 * 1024); // check if there is atleast 1GB left afterwards. aim for 60% because rsync/tgz won't need full 100%
|
||||
if (df.available <= needed) throw new BoxError(BoxError.FS_ERROR, `Not enough disk space for backup. Needed: ${df.prettyBytes(needed)} Available: ${df.prettyBytes(df.available)}`);
|
||||
|
||||
Reference in New Issue
Block a user