projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c553168
)
snmp plugin: Handle `ASN_TIMETICKS' as `counter' if it's known by the SNMP library.
author
Florian Forster
<octo@huhu.verplant.org>
Thu, 27 Sep 2007 14:13:02 +0000
(16:13 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Thu, 27 Sep 2007 14:13:02 +0000
(16:13 +0200)
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
2c4c930
..
c12b3ec
100644
(file)
--- 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;