parent
98eb7c1679
commit
b80b531e88
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ Singleton {
|
||||||
if (data) {
|
if (data) {
|
||||||
const stats = data.slice(1).map(n => parseInt(n, 10));
|
const stats = data.slice(1).map(n => parseInt(n, 10));
|
||||||
const total = stats.reduce((a, b) => a + b, 0);
|
const total = stats.reduce((a, b) => a + b, 0);
|
||||||
const idle = stats[3];
|
const idle = stats[3] + (stats[4] ?? 0);
|
||||||
|
|
||||||
const totalDiff = total - root.lastCpuTotal;
|
const totalDiff = total - root.lastCpuTotal;
|
||||||
const idleDiff = idle - root.lastCpuIdle;
|
const idleDiff = idle - root.lastCpuIdle;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue