timer: rate-limit the "timer expiry in the past" error messages
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Dec 2021 01:11:32 +0000 (11:11 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Dec 2021 01:18:01 +0000 (11:18 +1000)
commit64a49d18b948a5b8ac88da9207689af356a081cf
treefcd9a303dd44453a89841a2e1bb297aa5aad1a88
parent8dd8786c482b8811cf0628571e6724e540ce61d7
timer: rate-limit the "timer expiry in the past" error messages

We already ratelimit the normal notification about event processing
lagging behind but in the case of timers actually expiring late, we'd
pass those messages on. So lots of clicks on a slow-reponse system
resulted in lots of messages triggered by the debounce timers.

Use the same ratelimiting as the event processing warning, 5 messages
per hour which should be a good balance between warning and not spamming
the log.

Fixes #711

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput-private.h
src/timer.c