mirror of
https://github.com/kuhyx/scripts.git
synced 2026-07-04 16:43:13 +02:00
feat: network info has constant speed
This commit is contained in:
parent
a5d4f5299e
commit
d5a53b62e0
@ -58,6 +58,6 @@ fi
|
|||||||
rx_rate_human=$(numfmt --to=iec --suffix=B/s $rx_rate)
|
rx_rate_human=$(numfmt --to=iec --suffix=B/s $rx_rate)
|
||||||
tx_rate_human=$(numfmt --to=iec --suffix=B/s $tx_rate)
|
tx_rate_human=$(numfmt --to=iec --suffix=B/s $tx_rate)
|
||||||
|
|
||||||
# Output the result
|
# Output the result with fixed width
|
||||||
echo -e " DL: $rx_rate_human UL: $tx_rate_human"
|
printf " DL: %-8s UL: %-8s\n" "$rx_rate_human" "$tx_rate_human"
|
||||||
echo "#50FA7B"
|
echo "#50FA7B"
|
||||||
Loading…
Reference in New Issue
Block a user