From de8d8b89a4d3fc4e6cff6b8ab26132896624421e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 10 Sep 2013 14:58:17 +0200 Subject: omelasticsearch: adapt to new stats subsystem extensions --- plugins/omelasticsearch/omelasticsearch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/omelasticsearch/omelasticsearch.c') diff --git a/plugins/omelasticsearch/omelasticsearch.c b/plugins/omelasticsearch/omelasticsearch.c index aea8e321..3e5cb4c5 100644 --- a/plugins/omelasticsearch/omelasticsearch.c +++ b/plugins/omelasticsearch/omelasticsearch.c @@ -995,13 +995,13 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(statsobj.Construct(&indexStats)); CHKiRet(statsobj.SetName(indexStats, (uchar *)"elasticsearch")); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"connfail", - ctrType_IntCtr, &indexConFail)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexConFail)); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"submits", - ctrType_IntCtr, &indexSubmit)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexSubmit)); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"failed", - ctrType_IntCtr, &indexFailed)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexFailed)); CHKiRet(statsobj.AddCounter(indexStats, (uchar *)"success", - ctrType_IntCtr, &indexSuccess)); + ctrType_IntCtr, CTR_FLAG_RESETTABLE, &indexSuccess)); CHKiRet(statsobj.ConstructFinalize(indexStats)); ENDmodInit -- cgit v1.2.3