]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: add support for Gbit speeds in sprint_bw()
authorEric Dumazet <edumazet@google.com>
Tue, 5 May 2020 15:37:41 +0000 (08:37 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 5 May 2020 16:50:22 +0000 (09:50 -0700)
commite133fa9c73835f5b80236ae20eaba765f1bfe553
tree06ab66810032e0590bc3f6a76a33168b60657909
parent0501fe734fd75ed93b3417266127bfc37b07459b
ss: add support for Gbit speeds in sprint_bw()

Also use 'g' specifier instead of 'f' to remove trailing zeros,
and increase precision.

Examples of output :
 Before        After
 8.0Kbps       8Kbps
 9.9Mbps       9.92Mbps
 55001Mbps     55Gbps

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/ss.c