mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
multicpu1sec: add a flush to awk
This commit is contained in:
parent
5b56bd2973
commit
e3744a09f9
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ run_watchdog() { # should also trap kill and term signals
|
||||||
run_acquire() {
|
run_acquire() {
|
||||||
echo "$$" > $pidfile
|
echo "$$" > $pidfile
|
||||||
mpstat -P ALL $interval |
|
mpstat -P ALL $interval |
|
||||||
awk -v cpus=$cpus '$2>=0&&$2<10 {print $2, systime(), (100-$11)/cpus}' >> $cache
|
awk -v cpus=$cpus '$2>=0&&$2<10 {print $2, systime(), (100-$11)/cpus; system("");}' >> $cache
|
||||||
rm -f $pidfile $cache
|
rm -f $pidfile $cache
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue