[rrd-users] Re: how to know why RRDs::update die

Mauro mauog at interfree.it
Thu Nov 18 14:27:12 MET 2004


I solved my problem rounding number by sprintf:
$variable=sprintf("%.5f",$variable)

:-)

Thank You

Mauro


> I had a very similar issue, but I found that my problem was not the
floating, so yours may be different,but the issue I ran into was that I
could update manually, but when RRD::update did it ,it could not update with
leading or trailing whitespaces.  This is my solution:
> chomp $variable;
> $variable =~ s/(^ *)||( *$)//g;
>
> I know it's redundant, but it works.  Do this to the variables you are
updating and it might help. Good luck
>
> -sunil
>

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list