X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgmond.c;h=006f5b8c1595a51c8cfcafabb319c6103a57e1e5;hb=eb4aab6b6d5af827b5c1fb2f7d2550b7de22fa90;hp=93bbc95d1091518fb105cba97a7c550c1b87f011;hpb=cfb86a0f119d0ee0e72a920ba1251bb0350cf08b;p=collectd.git diff --git a/src/gmond.c b/src/gmond.c index 93bbc95d..006f5b8c 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -1,6 +1,6 @@ /** * collectd - src/gmond.c - * Copyright (C) 2005-2009 Florian octo Forster + * Copyright (C) 2009 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -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;