From: Florian Forster Date: Thu, 27 Sep 2007 14:13:02 +0000 (+0200) Subject: snmp plugin: Handle `ASN_TIMETICKS' as `counter' if it's known by the SNMP library. X-Git-Tag: collectd-4.1.2~2^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=97807957721f191e3963b0af3423d85da9f9b832;p=collectd.git snmp plugin: Handle `ASN_TIMETICKS' as `counter' if it's known by the SNMP library. --- diff --git a/src/snmp.c b/src/snmp.c index 2c4c930c..c12b3ec8 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -654,6 +654,9 @@ static value_t csnmp_value_list_to_value (struct variable_list *vl, int type) if ((vl->type == ASN_INTEGER) || (vl->type == ASN_UINTEGER) || (vl->type == ASN_COUNTER) +#ifdef ASN_TIMETICKS + || (vl->type == ASN_TIMETICKS) +#endif || (vl->type == ASN_GAUGE)) { temp = (uint32_t) *vl->val.integer;