3

According Documentation

%s or %S will add the appropriate SI unit ,

But when added or not added , PRINT is printing only the value but not if the value is Mbps or Gbps,

command with %s or %S

rrdtool graph dummy -e 00:00 DEF:test="Bandwidth.rrd":1:MAX PRINT:test:MAX:%5.2lf%S

output

0x0 55.20

command without %s

rrdtool graph dummy -e 00:00 DEF:test="Bandwidth.rrd":1:MAX PRINT:test:MAX:%5.2lf

output

0x0 55.20

I need it to print to the console that whether the value is in Mbps or Gbps,

R__raki__
  • 847
  • 4
  • 15
  • 30

0 Answers0