summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b888aac)
raw | patch | inline | side by side (parent: b888aac)
author | Nathan Ward <nathan@primoris.co.nz> | |
Wed, 28 Oct 2015 12:46:29 +0000 (01:46 +1300) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Sun, 8 Nov 2015 16:12:54 +0000 (17:12 +0100) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index e178d3a22c495b84d2108923f3ca266e6447aacb..d4a29c7e5a039139b2676bbc3891a69d933a17cf 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
tmp_unsigned = (uint32_t) *vl->val.integer;
tmp_signed = (int32_t) *vl->val.integer;
- if ((vl->type == ASN_INTEGER)
- || (vl->type == ASN_GAUGE))
+ if ((vl->type == ASN_INTEGER))
prefer_signed = 1;
DEBUG ("snmp plugin: Parsed int32 value is %"PRIu64".", tmp_unsigned);