diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-07 15:58:09 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-07 15:58:09 +0200 |
commit | fbc737d6504448af7633412ef56c3cbeb2d28587 (patch) | |
tree | f57c2e17713e30ec8adc912783e90f25e0ab7bf2 /plugins/imptcp/imptcp.c | |
parent | 37107dead1b79e6dfae26cf02864d431e2078916 (diff) | |
download | rsyslog-fbc737d6504448af7633412ef56c3cbeb2d28587.tar.gz rsyslog-fbc737d6504448af7633412ef56c3cbeb2d28587.tar.bz2 rsyslog-fbc737d6504448af7633412ef56c3cbeb2d28587.zip |
experimental: make impstats return delta values where possible
Diffstat (limited to 'plugins/imptcp/imptcp.c')
-rw-r--r-- | plugins/imptcp/imptcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/imptcp/imptcp.c b/plugins/imptcp/imptcp.c index 8a99396b..dd027770 100644 --- a/plugins/imptcp/imptcp.c +++ b/plugins/imptcp/imptcp.c @@ -1013,15 +1013,15 @@ addLstn(ptcpsrv_t *pSrv, int sock, int isIPv6) CHKiRet(statsobj.SetName(pLstn->stats, statname)); STATSCOUNTER_INIT(pLstn->ctrSubmit, pLstn->mutCtrSubmit); CHKiRet(statsobj.AddCounter(pLstn->stats, UCHAR_CONSTANT("submitted"), - ctrType_IntCtr, &(pLstn->ctrSubmit))); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &(pLstn->ctrSubmit))); /* the following counters are not protected by mutexes; we accept * that they may not be 100% correct */ pLstn->rcvdBytes = 0, pLstn->rcvdDecompressed = 0; CHKiRet(statsobj.AddCounter(pLstn->stats, UCHAR_CONSTANT("bytes.received"), - ctrType_IntCtr, &(pLstn->rcvdBytes))); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &(pLstn->rcvdBytes))); CHKiRet(statsobj.AddCounter(pLstn->stats, UCHAR_CONSTANT("bytes.decompressed"), - ctrType_IntCtr, &(pLstn->rcvdDecompressed))); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &(pLstn->rcvdDecompressed))); CHKiRet(statsobj.ConstructFinalize(pLstn->stats)); /* add to start of server's listener list */ |