summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a4cb99)
raw | patch | inline | side by side (parent: 6a4cb99)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 12 May 2008 16:15:25 +0000 (16:15 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 12 May 2008 16:15:25 +0000 (16:15 +0000) |
bindings/python/rrdtoolmodule.c | patch | blob | history | |
src/rrd_update.c | patch | blob | history |
index fa96ebd9553d52076393c3f132b5690727b096e9..f82973436a8c23063567247d845d36832243d2e7 100644 (file)
rrd_clear_error();
return NULL;
}
-
#define DICTSET_STR(dict, name, value) \
t = PyString_FromString(value); \
PyDict_SetItemString(dict, name, t); \
diff --git a/src/rrd_update.c b/src/rrd_update.c
index 158b4ae70e28d064c2701ed991bb16b8fe0e6c94..8eab0e90124da4558f4080bbf7f171d143738c8b 100644 (file)
--- a/src/rrd_update.c
+++ b/src/rrd_update.c
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 /