0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-10 00:32:45 +00:00

Change to test values

This commit is contained in:
G.Ambatte
2024-10-09 17:50:26 +13:00
parent 0b44e68a36
commit fb2d03f5a2

View File

@@ -4,19 +4,28 @@ export const HISTORY_PREFIX = 'HOMEBREWERY-HISTORY';
export const HISTORY_SLOTS = 5; export const HISTORY_SLOTS = 5;
// History values in minutes // 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 = { const HISTORY_SAVE_DELAYS = {
'0' : 0, '0' : 0,
'1' : 2, '1' : 1,
'2' : 10, '2' : 2,
'3' : 60, '3' : 3,
'4' : 12 * 60, '4' : 4,
'5' : 2 * 24 * 60 '5' : 5
}; };
const HB_DB = 'HOMEBREWERY-DB'; const HB_DB = 'HOMEBREWERY-DB';
const HB_STORE = 'HISTORY'; 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){ function getKeyBySlot(brew, slot){