index 6bd04b22277a329513073a041e2b75ad4e98bd49..8eab0e90124da4558f4080bbf7f171d143738c8b 100644 (file)
--- a/program/src/rrd_update.c
+++ b/program/src/rrd_update.c
#endif
-#define DEBUG 1
-
/* FUNCTION PROTOTYPES */
int rrd_update_r(
double interval,
double pre_int,
double post_int,
- long diff_pdp_st, /* number of seconds in full steps passed since last update */
+ long diff_pdp_st, /* number of seconds in full steps passed since last update */
rrd_value_t *pdp_new,
rrd_value_t *pdp_temp)
{
/* if too much of the pdp_prep is unknown we dump it */
/* if the interval is larger thatn mrhb we get NAN */
if ((interval > mrhb) ||
- (rrd->stat_head->pdp_step/2.0 < (signed) scratch[PDP_unkn_sec_cnt].u_cnt)) {
+ (rrd->stat_head->pdp_step / 2.0 <
+ (signed) scratch[PDP_unkn_sec_cnt].u_cnt)) {
pdp_temp[ds_idx] = DNAN;
} else {
pdp_temp[ds_idx] = scratch[PDP_val].u_val /