<div class="gmail_quote"><div dir="ltr">On Sat, 16 Jul 2016, 03:40 oliver <<a href="mailto:ohemming@gmail.com">ohemming@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello All<br>
<br>
I'm running 4.3.21.<br>
<br>
For our Network Traffic graphs, the in/out readings are in bps and the<br>
total is in Mbps<br>
<br>
Here's the section from graphs.cfg (which has not been modified)<br>
<br>
[ifstat]<br>
        FNPATTERN ^ifstat.(.+).rrd<br>
        TITLE Network Traffic<br>
        YAXIS Bits/second<br>
        DEF:inbytes@RRDIDX@=@RRDFN@:bytesReceived:AVERAGE<br>
        CDEF:in@RRDIDX@=inbytes@RRDIDX@,8,*<br>
        DEF:outbytes@RRDIDX@=@RRDFN@:bytesSent:AVERAGE<br>
        CDEF:out@RRDIDX@=outbytes@RRDIDX@,8,*<br>
        CDEF:tot@RRDIDX@=in@RRDIDX@,out@RRDIDX@,+<br>
        LINE2:in@RRDIDX@#@COLOR@:@RRDPARAM@  inbound<br>
        GPRINT:in@RRDIDX@:LAST: \: %10.1lf (cur)<br>
        GPRINT:in@RRDIDX@:MAX: \: %10.1lf (max)<br>
        GPRINT:in@RRDIDX@:MIN: \: %10.1lf (min)<br>
        GPRINT:in@RRDIDX@:AVERAGE: \: %10.1lf (avg)\n<br>
        LINE2:out@RRDIDX@#@COLOR@:@RRDPARAM@ outbound<br>
        GPRINT:out@RRDIDX@:LAST: \: %10.1lf (cur)<br>
        GPRINT:out@RRDIDX@:MAX: \: %10.1lf (max)<br>
        GPRINT:out@RRDIDX@:MIN: \: %10.1lf (min)<br>
        GPRINT:out@RRDIDX@:AVERAGE: \: %10.1lf (avg)\n<br>
        LINE2:tot@RRDIDX@#@COLOR@:@RRDPARAM@ I/O total<br>
        GPRINT:tot@RRDIDX@:LAST: \: %5.1lf%s (cur)<br>
        GPRINT:tot@RRDIDX@:MAX: \: %5.1lf%s (max)<br>
        GPRINT:tot@RRDIDX@:MIN: \: %5.1lf%s (min)<br>
        GPRINT:tot@RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n<br>
<br>
How can I have the In/Out readings also show in Mbps?<br></blockquote></div><div><br></div><div>I think change the GPRINT strings to/from "%5.1lf%s". The format is defined by the RRD tool. See man rrdgraph for more.</div><div><br></div><div>J</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div>