From 97807957721f191e3963b0af3423d85da9f9b832 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 27 Sep 2007 16:13:02 +0200 Subject: [PATCH] snmp plugin: Handle `ASN_TIMETICKS' as `counter' if it's known by the SNMP library. --- src/snmp.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2