[rrd-users] gprint correct units

A Darren Dunham ddunham at taos.com
Sat Dec 19 00:38:44 CET 2009


On Fri, Dec 18, 2009 at 03:23:32PM -0800, John Stile wrote:
> I have a rrd with values like:  5.3304700563e+07
> My gprint line is:
>   GPRINT:backup1: %10.3lf %Sb'
> 
> I'm trying to print:  53.305 Gb
> but it always prints: 53.305 Mb

5.3 x 10^7 => 53 Million => 53 M

So it seems correct to me.  Perhaps you want to multiply by 1000 or by
1024 before printing?

-- 
Darren



More information about the rrd-users mailing list