From fb2d03f5a2e01043d60ff3ade8575bfd447095f2 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 9 Oct 2024 17:50:26 +1300 Subject: [PATCH] Change to test values --- client/homebrew/utils/versionHistory.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/client/homebrew/utils/versionHistory.js b/client/homebrew/utils/versionHistory.js index 3be3a9aba..5bc3e9771 100644 --- a/client/homebrew/utils/versionHistory.js +++ b/client/homebrew/utils/versionHistory.js @@ -4,19 +4,28 @@ export const HISTORY_PREFIX = 'HOMEBREWERY-HISTORY'; export const HISTORY_SLOTS = 5; // History values in minutes +// const HISTORY_SAVE_DELAYS = { +// '0' : 0, +// '1' : 2, +// '2' : 10, +// '3' : 60, +// '4' : 12 * 60, +// '5' : 2 * 24 * 60 +// }; const HISTORY_SAVE_DELAYS = { '0' : 0, - '1' : 2, - '2' : 10, - '3' : 60, - '4' : 12 * 60, - '5' : 2 * 24 * 60 + '1' : 1, + '2' : 2, + '3' : 3, + '4' : 4, + '5' : 5 }; const HB_DB = 'HOMEBREWERY-DB'; const HB_STORE = 'HISTORY'; -const GARBAGE_COLLECT_DELAY = 28 * 24 * 60; +// const GARBAGE_COLLECT_DELAY = 28 * 24 * 60; +const GARBAGE_COLLECT_DELAY = 10; function getKeyBySlot(brew, slot){