]> granicus.if.org Git - procps-ng/commitdiff
vmstat: fix 1st time enumerators so zeros aren't shown
authorJim Warner <james.warner@comcast.net>
Thu, 2 Jun 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 7 Jun 2016 11:04:43 +0000 (21:04 +1000)
Some DELTA versions were used where raw totals needed.

Signed-off-by: Jim Warner <james.warner@comcast.net>
vmstat.c

index 35a4f57f8f43966e69b36333f1b8916a8062600d..78792d69e4fbc9f80df08c9eb8e92459fef5f0d8 100644 (file)
--- a/vmstat.c
+++ b/vmstat.c
@@ -204,10 +204,10 @@ static unsigned long unitConvert(unsigned long size)
 }
 
 static enum stat_item First_stat_items[] = {
-    PROCPS_STAT_SYS_DELTA_PROC_RUNNING,
-    PROCPS_STAT_SYS_DELTA_PROC_BLOCKED,
-    PROCPS_STAT_SYS_DELTA_INTERRUPTS,
-    PROCPS_STAT_SYS_DELTA_CTX_SWITCHES,
+    PROCPS_STAT_SYS_PROC_RUNNING,
+    PROCPS_STAT_SYS_PROC_BLOCKED,
+    PROCPS_STAT_SYS_INTERRUPTS,
+    PROCPS_STAT_SYS_CTX_SWITCHES,
     PROCPS_STAT_TIC_USER,
     PROCPS_STAT_TIC_NICE,
     PROCPS_STAT_TIC_SYSTEM,