fix syntax errors

This commit is contained in:
Dustin Kirkland 2011-05-25 17:17:13 -05:00
commit ae87ebb90d

View file

@ -61,10 +61,9 @@ for i in up down; do
fi fi
done < /proc/net/dev done < /proc/net/dev
echo "$x2" > "$cache" echo "$x2" > "$cache"
rate=$(8 * (($x2 - $x1) / ($t2 - $t1) / 1024)) # in kbps rate=$((8*($x2 - $x1) / ($t2 - $t1) / 1024)) # in kbps
[ "$rate" -lt 0 ] && rate=0 [ "$rate" -lt 0 ] && rate=0
fi if [ $rate -lt $NETWORK_THRESHOLD ]; then
if [ $rate -lt $NETWORK_THRESHOLD ];
# Below threshold, exit immediately! # Below threshold, exit immediately!
exit 0 exit 0
fi fi