[rrd-users] How to set values with a beginning Zero?

Chris Mason chris at noodles.org.uk
Tue Feb 28 12:25:01 CET 2012

> is there any possibility to set for values like 1.45 a beginning zero? So, that 1.45 would be 01.45 in the output, but values like 23.64 won't get any additional zero.

I am assuming you are referring to adding a leading zero to numbers
which are output onto graphs? You can prefix the format to GPRINT with
a 0 to indicate that it must print leading zeros, e.g.:

GPRINT:DSxBits:MAX:'%05.2lf %sbps'


More information about the rrd-users mailing list