From 0a3958efcdda5d3c639a5b74982b796ea87df2b6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 1 Jul 2009 15:39:11 +0200 Subject: [PATCH] gmond plugin: Use `strtoull' to parse counter values. Instead of `strtoll'. --- src/gmond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmond.c b/src/gmond.c index aeb36c18..006f5b8c 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -595,7 +595,7 @@ static int mc_handle_value_msg (Ganglia_value_msg *msg) /* {{{ */ endptr = NULL; errno = 0; - value_counter.counter = (counter_t) strtoll (msg_string.str, + value_counter.counter = (counter_t) strtoull (msg_string.str, &endptr, /* base = */ 0); if ((endptr == msg_string.str) || (errno != 0)) value_counter.counter = -1; -- 2.11.0