[rrd-users] How to get decimal output from rrdtool fetch?
Tobias Oetiker
tobi at oetiker.ch
Mon Dec 8 08:05:37 CET 2008
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 tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-users
mailing list