From: Florian Forster Date: Sun, 5 Dec 2010 11:05:18 +0000 (+0100) Subject: src/common.c: parse_value: Fix assignment of derive and absolute values. X-Git-Tag: collectd-5.0.0-beta0~3^2^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=84e8922c9ca797a43463feb53c2053e150d31bb2;p=collectd.git src/common.c: parse_value: Fix assignment of derive and absolute values. --- diff --git a/src/common.c b/src/common.c index ae57c433..65dee72d 100644 --- 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: