compacted nettraf display
modified: .config/coc/extensions/db.json modified: .local/bin/statusbar/nettraf
This commit is contained in:
parent
142229d330
commit
33eb3b709a
@ -1,3 +1,3 @@
|
||||
{
|
||||
"lastUpdate": 1594097478969
|
||||
"lastUpdate": 1594283334586
|
||||
}
|
@ -33,6 +33,6 @@ tx_avg=$(( "$tx" / "$timedifference" ))
|
||||
#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)
|
||||
printf "⬇%4sB/s|⬆%4sB/s\\n" $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg) | sed 's/ //g'
|
||||
fi
|
||||
date +'%s' > $lasttime
|
||||
|
Loading…
Reference in New Issue
Block a user