From: oetiker Date: Mon, 28 Nov 2005 21:59:15 +0000 (+0000) Subject: we should still consider the mrhb ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b769c7063945c3ae8de23a5059341960a9beb662;p=rrdtool.git we should still consider the mrhb ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@723 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_update.c b/src/rrd_update.c index d164e34..7f4a8fe 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -783,6 +783,8 @@ _rrd_update(char *filename, char *tmplt, int argc, char **argv, a heart beat can be unknown */ /* (rrd.pdp_prep[i].scratch[PDP_unkn_sec_cnt].u_cnt > rrd.ds_def[i].par[DS_mrhb_cnt].u_cnt) || */ + /* if the interval is larger thatn mrhb we get NAN */ + (interval > rrd.ds_def[i].par[DS_mrhb_cnt].u_cnt) || (occu_pdp_st-proc_pdp_st <= rrd.pdp_prep[i].scratch[PDP_unkn_sec_cnt].u_cnt)) { pdp_temp[i] = DNAN;