problem with rrdtool 1.0.11

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problem with rrdtool 1.0.11

Tobias Oetiker
Folks,

I was just pointed to a problem ... it seems that some system consider

0 < NaN or 0 > NaN to be true ... NT among them .... this does
not go down well with some chages to rrd_update.c I made for the current
release ...

This is the code you will find in 1.0.12 due this weekend ...

in rrd_update.c

               /* make sure pdp_temp is neither too large or too small
                * if any of these occur it becomes unknown ...
                * sorry folks ... */
               if ( ! isnan(rate) &&
                    (( ! isnan(rrd.ds_def[i].par[DS_max_val].u_val) &&
                         rate > rrd.ds_def[i].par[DS_max_val].u_val ) ||    
                    ( ! isnan(rrd.ds_def[i].par[DS_min_val].u_val) &&
                        rate < rrd.ds_def[i].par[DS_min_val].u_val ))){
                  pdp_new[i] = DNAN;
               }              

cheers
tobi

--
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518
/_/ \.__/_.__/_/ [hidden email] http://ee-staff.ethz.ch/~oetiker

--
Unsubscribe mailto:[hidden email]?subject=unsubscribe
Help        mailto:[hidden email]?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-announce