printf "%f\n" `rrdtool fetch temp_serw1m.rrd AVERAGE --start -60`

Will do...

/FW


On Sun, 7 Dec 2008 14:57:02 -0800 (PST), demeo <[EMAIL PROTECTED]> wrote:
> At beginning sorry for my level of English. 
> 
> I want to ask about possibility to get decimal output from rrdtool fetch
> command. 
> Now when I make for example: 
> rrdtool fetch temp_serw1m.rrd AVERAGE --start -60 
> I get: 
> 1228690200: 2.2100000000e+01 
> 
> but I want to have 22.1 as output to have possibility process this data
in
> other programs/scripts. 
> 
> Thanks for any answer. 
> 
> -- 
> pozdrawiam 
> Pawel Trofimiuk
> 
>

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to