1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

[chrony] fix whitespace issues

This commit is contained in:
Lars Kruse 2016-11-10 23:54:57 +01:00
parent 728b105318
commit 89ddacb3c4

View file

@ -79,5 +79,5 @@ fi
# remove non-needed output lines, remove labels, rescale and label values while detecting slow/fast keywords # remove non-needed output lines, remove labels, rescale and label values while detecting slow/fast keywords
"$CHRONYC" tracking | sed -e 1d -e 3d -e "s/.*://" | \ "$CHRONYC" tracking | sed -e 1d -e 3d -e "s/.*://" | \
awk -v FAC="$fieldfactors" -v NAM="$fields" \ awk -v FAC="$fieldfactors" -v NAM="$fields" \
'BEGIN { split(FAC,factors," "); split(NAM,names," "); } 'BEGIN { split(FAC,factors," "); split(NAM,names," ");
{ /slow/ ? SIGN=-1 : SIGN=1 ; print names[NR]".value ",SIGN*$1*factors[NR]}' { /slow/ ? SIGN=-1 : SIGN=1 ; print names[NR]".value ",SIGN*$1*factors[NR]}'