chiark / gitweb /
work around busted capability.h
[elogind.git] / src / ratelimit.c
index 1e5ed03c55dbde295d096ba679cdacaae588db07..5adf1ae10d39606eb11216282cb30ec70e1e410a 100644 (file)
@@ -1,4 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
 /***
   This file is part of systemd.
  * <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;