summaryrefslogtreecommitdiff
path: root/src/ratelimit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ratelimit.c')
-rw-r--r--src/ratelimit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ratelimit.c b/src/ratelimit.c
index 1e5ed03c55..fc0f71de8b 100644
--- a/src/ratelimit.c
+++ b/src/ratelimit.c
@@ -28,21 +28,21 @@
* <hidave.darkstar@gmail.com>, which is licensed GPLv2. */
bool ratelimit_test(RateLimit *r) {
- usec_t timestamp;
+ usec_t ts;
- timestamp = now(CLOCK_MONOTONIC);
+ ts = now(CLOCK_MONOTONIC);
assert(r);
assert(r->interval > 0);
assert(r->burst > 0);
if (r->begin <= 0 ||
- r->begin + r->interval < timestamp) {
+ r->begin + r->interval < ts) {
if (r->n_missed > 0)
log_warning("%u events suppressed", r->n_missed);
- r->begin = timestamp;
+ r->begin = ts;
/* Reset counters */
r->n_printed = 0;