Révision a3d90c8f
Update cpu_
fixed /proc/stat parsing issues
| plugins/system/cpu_ | ||
|---|---|---|
| 59 | 59 |
guest.min 0 |
| 60 | 60 |
guest.type DERIVE |
| 61 | 61 |
guest.info The time spent running a virtual CPU for guest operating systems under the control of the Linux kernel. |
| 62 |
guest_nice.label guest |
|
| 63 |
guest_nice.draw STACK |
|
| 64 |
guest_nice.min 0 |
|
| 65 |
guest_nice.type DERIVE |
|
| 66 |
guest_nice.info The time spent running a virtual CPU for niced guest operating systems under the control of the Linux kernel. |
|
| 62 | 67 |
EOF |
| 63 | 68 |
} |
| 64 | 69 |
|
| ... | ... | |
| 80 | 85 |
|
| 81 | 86 |
emit_values() |
| 82 | 87 |
{
|
| 83 |
while read key system user nice idle iowait irq softirq steal guest unused
|
|
| 88 |
while read key user nice system idle iowait irq softirq steal guest guest_nice
|
|
| 84 | 89 |
do |
| 85 | 90 |
[ "$key" != "$1" ] && continue |
| 86 | 91 |
cat <<EOF |
Formats disponibles : Unified diff