try:
rrdtool fetch temp_serw1m.rrd AVERAGE --start -60 | | perl -w -n -e 'my @l =
split;print shift @l;for(@l){printf q{ %f},$_};print "\n"'
cheers
tobi
Yesterday demeo 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.
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [EMAIL PROTECTED] ++41 62 775 9902 / sb: -9900
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users