[rrd-users] Re: RRDTool::OO - Storing/Retrieving from DB

Rafael Angarita rangarita at telcel.net.ve
Fri Jul 9 17:43:27 MEST 2004


    Thanks for your answer Mike, but I have just one more question, is 
normal a rounding as big as this? (my program add the received 
parameter). I 50, 50 and 40 and the 40 is added as 42

# for i in 50.0 50.0 40.0 ; do
        perl graphQueue.pl.old $i;
        echo "";
        sleep 5;
    done
  Adding 50.0
 
  Adding 50.0
Fri Jul  9 09:27:50 2004: 50
Fri Jul  9 09:27:55 2004:
 
  Adding 40.0
Fri Jul  9 09:27:50 2004: 50
Fri Jul  9 09:27:55 2004: 42
Fri Jul  9 09:28:00 2004:
 
# 


Mike Schilli wrote:

>Rafael Angarita wrote on 7/8/2004, 4:48 PM:
>
> >     I'm using    RRDTool::OO to write a generic perl script to graph any
> > server parameter (a generic script), but when I retrieve  values from
> > the DB I don't get exactly the same values stored I'm getting
> > approximated values, is this normal?
>
>Hi Rafael,
>
>this is definitely normal, rounding occurs, (unrelated to the 
>RRDTool::OO wrapper) with RRDTool. CC:ing the helpful guys on the 
>rrd-users list.
>
>--
>-- Mike
>Mike Schilli
>m at perlmeister.com
>
>Hi Mike,
>
>     I'm using    RRDTool::OO to write a generic perl script to graph any
>server parameter (a generic script), but when I retrieve  values from
>the DB I don't get exactly the same values stored I'm getting
>approximated values, is this normal? I think this could be due to a
>configuration instruction of my DB, but I'm not sure.
>     I store 1 value each  5 seconds.
>
>     I appreciate your comments about this situation....
>
>     By the way, this is my create instruction:
>$rrd->create(step        => 5,
>                             data_source => { name      => "param01",
>                             type      => "GAUGE" },
>                             archive     => { rows      => 5 });
>
>     The environment:
>     - OS: Solaris 8
>     - Perl version: 5.6
>     - RRDTool::OO version: 0.06
>     - rrdtool-1.0.48
>
>     Thanks in advance,
>
>
>
>
>  
>
-- 

Rafael Angarita
Administrador de Sistemas
Telcel Bellsouth
(+58212)(2009765)



--
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