From a3d90c8fb0ecfda3a29e59cce44369e460c912b9 Mon Sep 17 00:00:00 2001 From: rkarlsba Date: Sun, 9 Mar 2014 19:25:57 +0100 Subject: [PATCH] Update cpu_ fixed /proc/stat parsing issues --- plugins/system/cpu_ | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/system/cpu_ b/plugins/system/cpu_ index fb6846a5..56be19d4 100755 --- a/plugins/system/cpu_ +++ b/plugins/system/cpu_ @@ -59,6 +59,11 @@ guest.draw STACK guest.min 0 guest.type DERIVE guest.info The time spent running a virtual CPU for guest operating systems under the control of the Linux kernel. +guest_nice.label guest +guest_nice.draw STACK +guest_nice.min 0 +guest_nice.type DERIVE +guest_nice.info The time spent running a virtual CPU for niced guest operating systems under the control of the Linux kernel. EOF } @@ -80,7 +85,7 @@ fi emit_values() { - while read key system user nice idle iowait irq softirq steal guest unused + while read key user nice system idle iowait irq softirq steal guest guest_nice do [ "$key" != "$1" ] && continue cat <