projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
449418f
)
gmond plugin: Use `strtoull' to parse counter values.
author
Florian Forster
<octo@noris.net>
Wed, 1 Jul 2009 13:39:11 +0000
(15:39 +0200)
committer
Florian Forster
<octo@noris.net>
Wed, 1 Jul 2009 13:39:11 +0000
(15:39 +0200)
Instead of `strtoll'.
src/gmond.c
patch
|
blob
|
history
diff --git
a/src/gmond.c
b/src/gmond.c
index
aeb36c1
..
006f5b8
100644
(file)
--- 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) strto
u
ll (msg_string.str,
&endptr, /* base = */ 0);
if ((endptr == msg_string.str) || (errno != 0))
value_counter.counter = -1;