summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1792422)
raw | patch | inline | side by side (parent: 1792422)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 14 Nov 2009 08:00:16 +0000 (09:00 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 14 Nov 2009 08:00:16 +0000 (09:00 +0100) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index ee40263836f047072a6468936d1ec29c849541cb..00df3779bb52907c001de892b5ffae6ce9c5a442 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
ret.gauge = (scale * tmp_signed) + shift;
}
else if (type == DS_TYPE_DERIVE)
- ret.derive = (derive_t) temp;
+ ret.derive = (derive_t) tmp_signed;
else if (type == DS_TYPE_ABSOLUTE)
- ret.absolute = (absolute_t) temp;
+ ret.absolute = (absolute_t) tmp_unsigned;
else
{
ERROR ("snmp plugin: csnmp_value_list_to_value: Unknown data source "