summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-09-07 15:58:09 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-09-07 15:58:09 +0200
commitfbc737d6504448af7633412ef56c3cbeb2d28587 (patch)
treef57c2e17713e30ec8adc912783e90f25e0ab7bf2 /action.c
parent37107dead1b79e6dfae26cf02864d431e2078916 (diff)
downloadrsyslog-fbc737d6504448af7633412ef56c3cbeb2d28587.tar.gz
rsyslog-fbc737d6504448af7633412ef56c3cbeb2d28587.tar.bz2
rsyslog-fbc737d6504448af7633412ef56c3cbeb2d28587.zip
experimental: make impstats return delta values where possible
Diffstat (limited to 'action.c')
-rw-r--r--action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/action.c b/action.c
index 9ae00489..eb6301d8 100644
--- a/action.c
+++ b/action.c
@@ -382,11 +382,11 @@ actionConstructFinalize(action_t *pThis, struct nvlst *lst)
STATSCOUNTER_INIT(pThis->ctrProcessed, pThis->mutCtrProcessed);
CHKiRet(statsobj.AddCounter(pThis->statsobj, UCHAR_CONSTANT("processed"),
- ctrType_IntCtr, &pThis->ctrProcessed));
+ ctrType_IntCtr, CTR_FLAG_RESETTABLE, &pThis->ctrProcessed));
STATSCOUNTER_INIT(pThis->ctrFail, pThis->mutCtrFail);
CHKiRet(statsobj.AddCounter(pThis->statsobj, UCHAR_CONSTANT("failed"),
- ctrType_IntCtr, &pThis->ctrFail));
+ ctrType_IntCtr, CTR_FLAG_RESETTABLE, &pThis->ctrFail));
CHKiRet(statsobj.ConstructFinalize(pThis->statsobj));