projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
296384e
)
src/common.c: parse_value: Fix assignment of derive and absolute values.
author
Florian Forster
<octo@huhu.verplant.org>
Sun, 5 Dec 2010 11:05:18 +0000
(12:05 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Sun, 5 Dec 2010 11:05:18 +0000
(12:05 +0100)
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
ae57c43
..
65dee72
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-863,11
+863,11
@@
int parse_value (const char *value, value_t *ret_value, int ds_type)
break;
case DS_TYPE_DERIVE:
- ret_value->
counter
= (derive_t) strtoll (value, &endptr, 0);
+ ret_value->
derive
= (derive_t) strtoll (value, &endptr, 0);
break;
case DS_TYPE_ABSOLUTE:
- ret_value->
counter
= (absolute_t) strtoull (value, &endptr, 0);
+ ret_value->
absolute
= (absolute_t) strtoull (value, &endptr, 0);
break;
default: