Make backup memory limit slider more predictable with a minimum of 1 GB

This commit is contained in:
Johannes Zellner
2024-02-20 22:12:13 +01:00
parent 54c7757e38
commit df9c7010e2
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 */ } ]);