Make backup memory limit slider more predictable with a minimum of 1 GB
This commit is contained in:
+1
-1
@@ -244,7 +244,7 @@ async function startBackupTask(auditSource) {
|
||||
|
||||
const backupConfig = await getConfig();
|
||||
|
||||
const memoryLimit = backupConfig.limits?.memoryLimit ? Math.max(backupConfig.limits.memoryLimit/1024/1024, 1000) : 1000;
|
||||
const memoryLimit = backupConfig.limits?.memoryLimit ? Math.max(backupConfig.limits.memoryLimit/1024/1024, 1024) : 1024;
|
||||
|
||||
const taskId = await tasks.add(tasks.TASK_BACKUP, [ { /* options */ } ]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user