From: Florian Forster Date: Mon, 2 Mar 2009 08:49:22 +0000 (+0100) Subject: snmp plugin: Added a note about a potential bug that needs fixing. X-Git-Tag: collectd-4.6.2~5^2~10 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b74101a33fad432014a840a8242afe268b4ce3d4;p=collectd.git snmp plugin: Added a note about a potential bug that needs fixing. Negative absolute (gauge) values may be casted to an unsigned integer variable on their way throught he daemon, producing VERY HIGH tempera- tures in winter.. --- diff --git a/src/snmp.c b/src/snmp.c index 4d6e7694..995f39de 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -692,6 +692,7 @@ static void csnmp_host_open_session (host_definition_t *host) } } /* void csnmp_host_open_session */ +/* TODO: Check if negative values wrap around. Problem: negative temperatures. */ static value_t csnmp_value_list_to_value (struct variable_list *vl, int type, double scale, double shift) {