2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Cosmetic whitespace uniformity

This commit is contained in:
Nye Liu 2016-10-26 14:10:46 -07:00
parent 31bedc0822
commit afe87e904e

View File

@ -37,16 +37,15 @@ case $1 in
gsub(/^ +/,"",a[1]); gsub(/^ +/,"",a[1]);
if (($2 > 0) || ($10 > 0)) print a[1]; }' /proc/net/dev if (($2 > 0) || ($10 > 0)) print a[1]; }' /proc/net/dev
# egrep '^ *(eth|tap|bond|wlan|ath|ra|sw)[0-9]+:' /proc/net/dev | cut -f1 -d: | sed 's/ //g' # egrep '^ *(eth|tap|bond|wlan|ath|ra|sw)[0-9]+:' /proc/net/dev | cut -f1 -d: | sed 's/ //g'
fi fi
exit 0 exit 0
;; ;;
config) config)
echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 }' | tr "\n" " "`" echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 }' | tr "\n" " "`"
echo "graph_title $DEVICE TC traffic" echo "graph_title $DEVICE TC traffic"
echo 'graph_args --base 1000' echo 'graph_args --base 1000'
echo 'graph_vlabel bits per ${graph_period}' echo 'graph_vlabel bits per ${graph_period}'
echo 'graph_category network' echo 'graph_category network'
echo "graph_info This graph shows the TC classes traffic of the $DEVICE network interface. Please note that the traffic is shown in bits per second, not bytes." echo "graph_info This graph shows the TC classes traffic of the $DEVICE network interface. Please note that the traffic is shown in bits per second, not bytes."