Searched refs:ratelimit (Results 1 - 5 of 5) sorted by relevance

/systemd/src/test/
H A Dtest-ratelimit.c23 #include "ratelimit.h"
28 RATELIMIT_DEFINE(ratelimit, 1 * USEC_PER_SEC, 10);
31 assert_se(ratelimit_test(&ratelimit));
32 assert_se(!ratelimit_test(&ratelimit));
35 assert_se(ratelimit_test(&ratelimit));
37 RATELIMIT_INIT(ratelimit, 0, 10);
39 assert_se(ratelimit_test(&ratelimit));
/systemd/src/timesync/
H A Dtimesyncd-manager.h27 #include "ratelimit.h"
41 RateLimit ratelimit; member in struct:Manager
H A Dtimesyncd-manager.c41 #include "ratelimit.h"
858 if (!ratelimit_test(&m->ratelimit)) {
1123 RATELIMIT_INIT(m->ratelimit, RATELIMIT_INTERVAL_USEC, RATELIMIT_BURST);
/systemd/src/resolve/
H A Dresolved-dns-scope.h56 RateLimit ratelimit; member in struct:DnsScope
H A Dresolved-dns-scope.c80 RATELIMIT_INIT(s->ratelimit, MULTICAST_RATELIMIT_INTERVAL_USEC, MULTICAST_RATELIMIT_BURST);
219 if (!ratelimit_test(&s->ratelimit))
244 if (!ratelimit_test(&s->ratelimit))
741 if (!ratelimit_test(&s->ratelimit))

Completed in 37 milliseconds