X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsnmp.c;h=6a03a19dd8603adfca9b16001b7296ce1352d352;hb=042c592bcddeea04cf81230ba9c97a09c5d3595c;hp=18c52077fc0798079d9ba537fb1283f7fb460d70;hpb=dadf85ade12c75675cd20932e26d723d17a718f1;p=collectd.git diff --git a/src/snmp.c b/src/snmp.c index 18c52077..6a03a19d 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -924,8 +924,7 @@ static value_t csnmp_value_list_to_value (struct variable_list *vl, int type, 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);