oetiker / rrdtool-1.x

RRDtool 1.x - Round Robin Database
http://www.rrdtool.org
GNU General Public License v2.0
1.02k stars 264 forks source link

Router Interface bandwidth or traffic value is not clearly says if it s byte, Kilo byte , Mega byte or Gig byte #1034

Open rakikulkarni opened 5 years ago

rakikulkarni commented 5 years ago

When print of gprint is used on the network traffic interfaces, the SI unit "%s" will not say if the value returned is byte or KB, MB, or GB,

wnelis commented 5 years ago

%s cannot specify the unit, like bytes or bits. It can show the power of 10**3 is used when displaying the value, thus k (not K which is Kelvin), M ,G and so on. For my network interfaces, the throughput is shown below the graph with a gprint like the following:

GPRINT:inbits:AVERAGE:Avg\: %5.1lf %sb/s

which results in for instance '1.234 Mb/s'.

wnelis commented 5 years ago

A correction on the previous message: the result is something like '123.4 Mb/s'.