projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61f8576
)
src/common.c: rate_to_value: Update last_time and fix type of delta_gauge.
author
Florian Forster
<octo@collectd.org>
Mon, 2 Jul 2012 15:55:24 +0000
(11:55 -0400)
committer
Florian Forster
<octo@collectd.org>
Mon, 2 Jul 2012 15:55:24 +0000
(11:55 -0400)
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
4ca58d5
..
9098de5
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-1236,7
+1236,7
@@
int rate_to_value (value_t *ret_value, gauge_t rate, /* {{{ */
rate_to_value_state_t *state,
int ds_type, cdtime_t t)
{
-
deriv
e_t delta_gauge;
+
gaug
e_t delta_gauge;
cdtime_t delta_t;
if (ds_type == DS_TYPE_GAUGE)
@@
-1322,6
+1322,7
@@
int rate_to_value (value_t *ret_value, gauge_t rate, /* {{{ */
assert (23 == 42);
}
+ state->last_time = t;
*ret_value = state->last_value;
return (0);
} /* }}} value_t rate_to_value */