Skip to content

Commit

Permalink
[DDW-780] DISK_SPACE_REQUIRED back to original value
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Main committed Oct 26, 2021
1 parent 0ee60f6 commit a816848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/main/config.js
Expand Up @@ -157,7 +157,7 @@ export const NODE_SHUTDOWN_TIMEOUT = isTest ? 5000 : 5 * 60 * 1000; // 5 minutes
export const NODE_KILL_TIMEOUT = isTest ? 5000 : 5 * 60 * 1000; // 5 minutes | unit: milliseconds
export const NODE_UPDATE_TIMEOUT = isTest ? 10000 : 5 * 60 * 1000; // 5 minutes | unit: milliseconds

export const DISK_SPACE_REQUIRED = 400 * 1073741274; // 2 GB | unit: bytes
export const DISK_SPACE_REQUIRED = 2 * 1073741274; // 2 GB | unit: bytes
export const DISK_SPACE_REQUIRED_MARGIN_PERCENTAGE = 10; // 10% of the available disk space
export const DISK_SPACE_CHECK_LONG_INTERVAL = 10 * 60 * 1000; // 10 minutes | unit: milliseconds
export const DISK_SPACE_CHECK_MEDIUM_INTERVAL = 60 * 1000; // 1 minute | unit: milliseconds
Expand Down
2 changes: 1 addition & 1 deletion source/main/utils/handleDiskSpace.js
Expand Up @@ -137,7 +137,7 @@ export const handleDiskSpace = (
const setDiskSpaceIntervalChecking = (interval) => {
clearInterval(diskSpaceCheckInterval);
diskSpaceCheckInterval = setInterval(async () => {
handleCheckDiskSpace();
await handleCheckDiskSpace();
}, interval);
diskSpaceCheckIntervalLength = interval;
};
Expand Down

0 comments on commit a816848

Please sign in to comment.