mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
fix: SDA-2330 - Update API from querySystemIdleTime to getSystemIdleTime (#1043)
This commit is contained in:
parent
913bfb8d5c
commit
0c82066018
@ -66,7 +66,7 @@ class MemoryMonitor {
|
||||
return;
|
||||
}
|
||||
|
||||
(electron.powerMonitor as any).querySystemIdleTime((time) => {
|
||||
const time = electron.powerMonitor.getSystemIdleTime();
|
||||
const idleTime = time * 1000;
|
||||
// for MacOS use private else use residentSet
|
||||
const memoryConsumption = isMac ? (this.memoryInfo && this.memoryInfo.private) : (this.memoryInfo && this.memoryInfo.residentSet);
|
||||
@ -118,7 +118,6 @@ class MemoryMonitor {
|
||||
setTimeout(() => {
|
||||
this.canReload = true;
|
||||
}, this.memoryRefreshThreshold); // prevents multiple reloading of the client within 24hrs
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user