[SIGAR-106] rename cpu steal -> stolen
This commit is contained in:
1 parent
87b194fbb1
commit
51dd062f7e
13 files changed
+26
-25
No files matched your search
@@ -416,11 +416,11 @@ static void get_cpu_metrics(sigar_t *sigar, sigar_cpu_t *cpu, char *line)
|
||||
}
|
||||
if (*ptr == ' ') {
|
||||
/* 2.6.11+ kernels only */
|
||||
cpu->steal += SIGAR_TICK2MSEC(sigar_strtoull(ptr));
|
||||
cpu->stolen += SIGAR_TICK2MSEC(sigar_strtoull(ptr));
|
||||
}
|
||||
cpu->total =
|
||||
cpu->user + cpu->nice + cpu->sys + cpu->idle +
|
||||
cpu->wait + cpu->irq + cpu->soft_irq + cpu->steal;
|
||||
cpu->wait + cpu->irq + cpu->soft_irq + cpu->stolen;
|
||||
}
|
||||
|
||||
int sigar_cpu_get(sigar_t *sigar, sigar_cpu_t *cpu)
|
||||
|
||||
Reference in new issue
Block a user