Lines Matching refs:ts
102 static bool journal_ratelimit_group_expired(JournalRateLimitGroup *g, usec_t ts) { in journal_ratelimit_group_expired() argument
108 if (g->pools[i].begin + g->interval >= ts) in journal_ratelimit_group_expired()
114 static void journal_ratelimit_vacuum(JournalRateLimit *r, usec_t ts) { in journal_ratelimit_vacuum() argument
121 (r->lru_tail && journal_ratelimit_group_expired(r->lru_tail, ts))) in journal_ratelimit_vacuum()
125 …oup* journal_ratelimit_group_new(JournalRateLimit *r, const char *id, usec_t interval, usec_t ts) { in journal_ratelimit_group_new() argument
143 journal_ratelimit_vacuum(r, ts); in journal_ratelimit_group_new()
192 usec_t ts; in journal_ratelimit_test() local
206 ts = now(CLOCK_MONOTONIC); in journal_ratelimit_test()
218 found = journal_ratelimit_group_new(r, id, rl_interval, ts); in journal_ratelimit_test()
234 p->begin = ts; in journal_ratelimit_test()
238 if (p->begin + rl_interval < ts) { in journal_ratelimit_test()
244 p->begin = ts; in journal_ratelimit_test()