summaryrefslogtreecommitdiffstats
path: root/runtime/ratelimit.c
diff options
context:
space:
mode:
authorTomas Heinrich <theinric@redhat.com>2013-06-11 16:27:37 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-06-12 08:42:14 +0200
commita3923fd54fb1ac35ee1ad6ccaa22aa39ead45d54 (patch)
tree602dd3455e1c8656a864dca8731e18c0e5d85286 /runtime/ratelimit.c
parent2547716dbce89172e3d0c3738a59d2e1489bbaa2 (diff)
downloadrsyslog-a3923fd54fb1ac35ee1ad6ccaa22aa39ead45d54.tar.gz
rsyslog-a3923fd54fb1ac35ee1ad6ccaa22aa39ead45d54.tar.bz2
rsyslog-a3923fd54fb1ac35ee1ad6ccaa22aa39ead45d54.zip
bugfix: prevent calling tellLostCnt() twice
Diffstat (limited to 'runtime/ratelimit.c')
-rw-r--r--runtime/ratelimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ratelimit.c b/runtime/ratelimit.c
index 443a5fa6..6e1df3e2 100644
--- a/runtime/ratelimit.c
+++ b/runtime/ratelimit.c
@@ -157,9 +157,9 @@ withinRatelimit(ratelimit_t *ratelimit, time_t tt)
/* resume if we go out of out time window */
if(tt > ratelimit->begin + ratelimit->interval) {
- tellLostCnt(ratelimit);
ratelimit->begin = 0;
ratelimit->done = 0;
+ tellLostCnt(ratelimit);
}
/* do actual limit check */