summaryrefslogtreecommitdiffstats
path: root/runtime/ratelimit.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ratelimit.h')
-rw-r--r--runtime/ratelimit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/ratelimit.h b/runtime/ratelimit.h
index 37dad900..5fa884a8 100644
--- a/runtime/ratelimit.h
+++ b/runtime/ratelimit.h
@@ -22,6 +22,14 @@
#define INCLUDED_RATELIMIT_H
struct ratelimit_s {
+ /* support for Linux kernel-type ratelimiting */
+ unsigned short interval;
+ unsigned short burst;
+ unsigned done;
+ unsigned missed;
+ time_t begin;
+ /* support for "last message repeated n times */
+ int bReduceRepeatMsgs; /**< shall we do "last message repeated n times" processing? */
unsigned nsupp; /**< nbr of msgs suppressed */
msg_t *pMsg;
sbool bThreadSafe; /**< do we need to operate in Thread-Safe mode? */