mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
fix syntax errors
This commit is contained in:
parent
26e3f0c46e
commit
ae87ebb90d
1 changed files with 2 additions and 3 deletions
|
@ -61,10 +61,9 @@ for i in up down; do
|
|||
fi
|
||||
done < /proc/net/dev
|
||||
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
|
||||
fi
|
||||
if [ $rate -lt $NETWORK_THRESHOLD ];
|
||||
if [ $rate -lt $NETWORK_THRESHOLD ]; then
|
||||
# Below threshold, exit immediately!
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue