remove extra space

This commit is contained in:
Girish Ramakrishnan
2023-10-31 17:25:14 +01:00
parent 4ad5bd71f1
commit c69cf4731a
+1 -1
View File
@@ -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)}`);