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

Update multibandwidth

I will update more changes in the next days
This commit is contained in:
Jose Manuel Febrer Cortés 2017-04-04 15:48:24 +02:00 committed by Lars Kruse
parent a1cc26f2d3
commit 1ae4ac09da

View File

@ -107,7 +107,7 @@ for host in $hosts; do
VALUE=`echo "$SPEED" | sed 's/.$//'` VALUE=`echo "$SPEED" | sed 's/.$//'`
RATE=`echo "$VALUE * 1048576" | bc -l` RATE=`echo "$VALUE * 1048576" | bc -l`
if [ $(echo "$RATE" >= "$max_mbps" | bc >/dev/null && echo "no" || echo "yes") = "yes" ]; then if [ `echo "$RATE > $max_mbps" | bc` -eq "1" ]; then
echo "$max_mbps" echo "$max_mbps"
else else
echo "$RATE" echo "$RATE"