mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-05 21:54:05 -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 systemIdleTime = require('@paulcbetts/system-idle-time');
|
||||||
const { getConfigField } = require('./config');
|
const { getConfigField } = require('./config');
|
||||||
|
|
||||||
|
const awayStatus = 'AWAY';
|
||||||
const maxMemory = 800;
|
const maxMemory = 800;
|
||||||
|
|
||||||
let maxIdleTime = 4 * 60 * 1000;
|
let maxIdleTime = 4 * 60 * 1000;
|
||||||
let reloadThreshold = 30 * 60 * 1000;
|
let reloadThreshold = 30 * 60 * 1000;
|
||||||
let reloadedTimeStamp;
|
let reloadedTimeStamp;
|
||||||
@ -65,7 +67,7 @@ function optimizeMemory(memoryInfo) {
|
|||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
function isUserActive() {
|
function isUserActive() {
|
||||||
return !(userPresenceStatus && userPresenceStatus === 'AWAY');
|
return !(userPresenceStatus && userPresenceStatus === awayStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user