service: flush the start counter in "systemctl reset-failed"

This commit is contained in:
Lennart Poettering
2012-07-04 00:23:42 +02:00
parent 6ffd333786
commit 451b34cc1d
3 changed files with 18 additions and 1 deletions
+7
View File
@@ -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