mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Make 'chrony' work with busybox awk
This commit is contained in:
parent
4a25b7de16
commit
4c1903fe29
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ echo "$fields" | while read fieldname factor regex label; do
|
||||||
value="U"
|
value="U"
|
||||||
else
|
else
|
||||||
# the keyword "slow" indicates negative values
|
# the keyword "slow" indicates negative values
|
||||||
value="$(echo "$status_line" | awk '{ /slow/ ? SIGN=-1 : SIGN=1; print $1 * SIGN * '"$factor"' }')"
|
value="$(echo "$status_line" | awk '{ /slow/ ? (SIGN=-1) : (SIGN=1); print $1 * SIGN * '"$factor"' }')"
|
||||||
fi
|
fi
|
||||||
echo "${fieldname}.value $value"
|
echo "${fieldname}.value $value"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue