cleaned up nettraf
modified: .local/bin/statusbar/nettraf
This commit is contained in:
parent
447e13bffb
commit
b52968cac9
@ -39,6 +39,7 @@ fi
|
||||
#only print if any traffic at all
|
||||
if [ "$rx_avg" -gt 0 ] || [ "$tx_avg" -gt 0 ]
|
||||
then
|
||||
printf "⬇%4sB/s|⬆%4sB/s\\n" $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg) | sed 's/ //g'
|
||||
#printf "⬇%4sB/s⬆%4sB/s\\n" $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg) | sed 's/ //g'
|
||||
printf "⬇%sB/s ⬆%sB/s\\n" $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg)
|
||||
fi
|
||||
date +'%s' > $lasttime
|
||||
|
Loading…
Reference in New Issue
Block a user