[rrd-announce] problem with rrdtool 1.0.11

Tobias Oetiker oetiker at ee.ethz.ch
Tue Feb 8 23:43:39 MET 2000


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 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

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



More information about the rrd-announce mailing list