fix(core): update
This commit is contained in:
parent
e98b1779e1
commit
8f0ebccb58
@ -50,10 +50,8 @@ export class SmartMetrics {
|
||||
cpu.times.idle;
|
||||
}
|
||||
|
||||
// Normalize the one returned by process.cpuUsage()
|
||||
// (microseconds VS miliseconds)
|
||||
const usage = process.cpuUsage();
|
||||
const currentCPUUsage = (usage.user + usage.system) * 1000;
|
||||
const currentCPUUsage = (usage.user + usage.system);
|
||||
|
||||
// Find out the percentage used for this specific CPU
|
||||
const perc = (currentCPUUsage / total) * 100;
|
||||
|
Loading…
Reference in New Issue
Block a user