service: flush the start counter in "systemctl reset-failed"
This commit is contained in:
@@ -48,6 +48,13 @@ typedef struct RateLimit {
|
||||
_r->begin = 0; \
|
||||
} while (false)
|
||||
|
||||
#define RATELIMIT_RESET(v) \
|
||||
do { \
|
||||
RateLimit *_r = &(v); \
|
||||
_r->num = 0; \
|
||||
_r->begin = 0; \
|
||||
} while (false)
|
||||
|
||||
bool ratelimit_test(RateLimit *r);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user