problem with rrdtool 1.0.11
Tobias Oetiker <[email protected]> Tue, 8 Feb 2000 23:43:39 +0100 (MET)
| Newsgroups | gmane.comp.db.rrdtool.announce |
|---|---|
| Message-ID | <Pine.GSO.4.21.0002082340080.26869-100000__11912.6181038611$1155579011$gmane$org@engelberg.ee.ethz.ch> |
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
/_/ \.__/_.__/_/ [email protected] http://ee-staff.ethz.ch/~oetiker