[rrd-developers] Re: [rrfw-devel] RRDTool Number format

Stanislav Sinyagin ssinyagin at yahoo.com
Fri Aug 29 22:33:50 MEST 2003


Hi all, 

I'm cross-posting it to rrd-developers list, since 
it might be rrdtool problem.

For COUNTER and DERIVE types, the previous value is compared with 
the new one by rrd_diff function, defined in rrd_diff.c.

Tobi, in this function I couldn't find any code that would compare
double numbers in scientific notation. Probably I'm too tired after 
a hard week....

Cheers,
Stan


--- Christian Schnidrig <christian.schnidrig at gmx.ch> wrote:
> Hi
> 
> Does rrdtool have a problem with numbers like this:
> 1.36372512678324e+15?
> 
> Here an extract of my collectors log file:
> 
>  [29-Aug-2003 16:44:31 ] |13055 |Updating
> /var/snmpcollector/6/bwsw1inh_2_1.rrd:
> --template=ifOutBits:ifInBits:ifStatus
> 1062168257:919439455709600:1.36357754297818e+15:58.6032378654971
> [29-Aug-2003 16:49:30 ] |13055 |Updating
> /var/snmpcollector/6/bwsw1inh_2_1.rrd:
> --template=ifOutBits:ifInBits:ifStatus
> 1062168557:919476711354128:1.36365103199601e+15:58.6076207602339
> [29-Aug-2003 16:54:31 ] |13055 |Updating
> /var/snmpcollector/6/bwsw1inh_2_1.rrd:
> --template=ifOutBits:ifInBits:ifStatus
> 1062168856:919513947540400:1.36372512678324e+15:58.6119997076023
> 
> The resulting graph for the data source ifInBits is strictly 0 :-)
> 
> 
> Here the first bit of rrdtool dump of the rrd-file.
> 
> <rrd>
>         <version> 0001 </version>
>         <step> 300 </step> <!-- Seconds -->
>         <lastupdate> 1062169457 </lastupdate> <!-- 2003-08-29 17:04:17
> CEST -->
> 
>         <ds>
>                 <name> ifStatus </name>
>                 <type> GAUGE </type>
>                 <minimal_heartbeat> 600 </minimal_heartbeat>
>                 <min> NaN </min>
>                 <max> NaN </max>
> 
>                 <!-- PDP Status -->
>                 <last_ds> UNKN </last_ds>
>                 <value> 1.5065541091e+04 </value>
>                 <unknown_sec> 0 </unknown_sec>
>         </ds>
> 
>         <ds>
>                 <name> ifOutBits </name>
>                 <type> COUNTER </type>
>                 <minimal_heartbeat> 600 </minimal_heartbeat>
>                 <min> 0.0000000000e+00 </min>
>                 <max> 1.0000000000e+09 </max>
> 
>                 <!-- PDP Status -->
>                 <last_ds> 919588078312240 </last_ds>
>                 <value> 3.1921870729e+10 </value>
>                 <unknown_sec> 0 </unknown_sec>
>         </ds>
> 
>         <ds>
>                 <name> ifInBits </name>
>                 <type> COUNTER </type>
>                 <minimal_heartbeat> 600 </minimal_heartbeat>
>                 <min> 0.0000000000e+00 </min>
>                 <max> 1.0000000000e+09 </max>
> 
>                 <!-- PDP Status -->
>                 <last_ds> 1 </last_ds>
>                 <value> 0.0000000000e+00 </value>
>                 <unknown_sec> 0 </unknown_sec>
>         </ds>
> 
> 
> Does anyone have an idea what is going on?
> 
> Thanks
> Christian
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> rrfw-devel mailing list
> rrfw-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rrfw-devel

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



More information about the rrd-developers mailing list