mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
multicpu1sec: use LANG=C to avoid S_TIME_FORMAT issues
This commit is contained in:
parent
e3744a09f9
commit
5090a771c8
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ run_watchdog() { # should also trap kill and term signals
|
|||
|
||||
run_acquire() {
|
||||
echo "$$" > $pidfile
|
||||
mpstat -P ALL $interval |
|
||||
LANG=C mpstat -P ALL $interval |
|
||||
awk -v cpus=$cpus '$2>=0&&$2<10 {print $2, systime(), (100-$11)/cpus; system("");}' >> $cache
|
||||
rm -f $pidfile $cache
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue