refactor: fix remaining lints in backend daemons #140
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/backend-stats"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Switched from using the 'os-utils' package to 'node-os-utils' since it'smore up to date and uses promises instead of callbacks.
@ -1,6 +1,6 @@
import si from 'systeminformation';
import Xev from 'xev';
import * as osUtils from 'os-utils';
import * as osUtils from 'node-os-utils';
This import breaks the functionality. Use this instead:
@ -59,1 +54,3 @@
});
async function cpuUsage(): Promise<number> {
const cpuUsage = await osUtils.cpu.usage();
return cpuUsage;
The variable seems unnecessary.
23e1037810
to92c1d63269
92c1d63269
to08561fc22e
08561fc22e
toc4131a0666
Revering back to the older os-utils package since it seems like the node-os-utils cpu usage function was just returning garbage.
c4131a0666
to4d01ece286