[rrd-users] How to get decimal output from rrdtool fetch?
Fredrik W
fredrik at n-mental.com
Mon Dec 8 08:36:29 CET 2008
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 <demeo at go2.pl> 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
>
>
More information about the rrd-users
mailing list