mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
Electron-445 - Move value to constant
This commit is contained in:
parent
3067aaacc8
commit
296af7fad5
@ -6,7 +6,9 @@ const { getMainWindow, setIsAutoReload } = require('./windowMgr');
|
||||
const systemIdleTime = require('@paulcbetts/system-idle-time');
|
||||
const { getConfigField } = require('./config');
|
||||
|
||||
const awayStatus = 'AWAY';
|
||||
const maxMemory = 800;
|
||||
|
||||
let maxIdleTime = 4 * 60 * 1000;
|
||||
let reloadThreshold = 30 * 60 * 1000;
|
||||
let reloadedTimeStamp;
|
||||
@ -65,7 +67,7 @@ function optimizeMemory(memoryInfo) {
|
||||
* @return {boolean}
|
||||
*/
|
||||
function isUserActive() {
|
||||
return !(userPresenceStatus && userPresenceStatus === 'AWAY');
|
||||
return !(userPresenceStatus && userPresenceStatus === awayStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user