actually updated slstatus and removed binaries

This commit is contained in:
bacalhau 2025-10-19 19:19:58 +01:00
parent 073fdfd5e8
commit b9ae019df3
12 changed files with 14 additions and 13 deletions

View file

@ -43,7 +43,7 @@
if (sum == 0)
return NULL;
return bprintf("%d", (int)(100 *
return bprintf("%02d", (int)(100 *
((b[0] + b[1] + b[2] + b[5] + b[6]) -
(a[0] + a[1] + a[2] + a[5] + a[6])) / sum));
}
@ -99,7 +99,7 @@
if (sum == 0)
return NULL;
return bprintf("%d", 100 *
return bprintf("%02d", 100 *
((a[CP_USER] + a[CP_NICE] + a[CP_SYS] +
a[CP_INTR]) -
(b[CP_USER] + b[CP_NICE] + b[CP_SYS] +
@ -148,7 +148,7 @@
if (sum == 0)
return NULL;
return bprintf("%d", 100 *
return bprintf("%02d", 100 *
((a[CP_USER] + a[CP_NICE] + a[CP_SYS] +
a[CP_INTR]) -
(b[CP_USER] + b[CP_NICE] + b[CP_SYS] +