summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-03-07 21:35:59 +0000
committerStef Walter <stef@memberwebs.com>2008-03-07 21:35:59 +0000
commit547aeee7e2ea193546d184d9b7d3426542b71a0f (patch)
tree7b14549828c418b34722aa7e0a28d63f72561c44 /module
parentb33612c01ed05b9495e495d63c567da75f9a6d5a (diff)
Update docs, and clarify usage of counter
Diffstat (limited to 'module')
-rw-r--r--module/bsnmp-regex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/bsnmp-regex.c b/module/bsnmp-regex.c
index 19febca..5a77d6e 100644
--- a/module/bsnmp-regex.c
+++ b/module/bsnmp-regex.c
@@ -1099,7 +1099,8 @@ op_regexentry (struct snmp_context *ctx, struct snmp_value *value,
data->value_str : "", -1));
case LEAF_regexCounter:
- value->v.counter64 = expired ? 0 : data->value_int;
+ value->v.counter64 = (expired && data->type != TYPE_COUNTER) ?
+ 0 : data->value_int;
break;
default: