summaryrefslogtreecommitdiffstats
path: root/tcpsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-15 16:39:36 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-15 16:39:36 +0200
commit34a88a7e9a9501593b6fe9f79cc96963c4da7cde (patch)
treedf742c45987b068beeb12e1cdac8996edd79a86e /tcpsrv.c
parent6ab4666622efeb9944bbf7b6e3581d1372465adb (diff)
downloadrsyslog-34a88a7e9a9501593b6fe9f79cc96963c4da7cde.tar.gz
rsyslog-34a88a7e9a9501593b6fe9f79cc96963c4da7cde.tar.bz2
rsyslog-34a88a7e9a9501593b6fe9f79cc96963c4da7cde.zip
ratelimit: added linux-like ratelimiter type
Diffstat (limited to 'tcpsrv.c')
-rw-r--r--tcpsrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpsrv.c b/tcpsrv.c
index 6b134017..89ad7325 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -152,7 +152,7 @@ addNewLstnPort(tcpsrv_t *pThis, uchar *pszPort, int bSuppOctetFram)
snprintf((char*)statname, sizeof(statname), "%s(%s)", pThis->pszInputName, pszPort);
statname[sizeof(statname)-1] = '\0'; /* just to be on the save side... */
CHKiRet(statsobj.SetName(pEntry->stats, statname));
- CHKiRet(ratelimitNew(&pEntry->ratelimiter));
+ CHKiRet(ratelimitNew(&pEntry->ratelimiter, "tcperver", NULL));
STATSCOUNTER_INIT(pEntry->ctrSubmit, pEntry->mutCtrSubmit);
CHKiRet(statsobj.AddCounter(pEntry->stats, UCHAR_CONSTANT("submitted"),
ctrType_IntCtr, &(pEntry->ctrSubmit)));