evdev: reduce the "your system is slow" warning to 5 per hour
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 22 Oct 2020 04:59:03 +0000 (14:59 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 28 Oct 2020 02:58:03 +0000 (02:58 +0000)
commit5faa3b7ae92abb7860b05e85dcdd402e2050ed72
tree0750bf4c50c33d970ed4d7b6df7fe4549e1d360c
parent69959c8a3b0612fb2bea015713f630a896188529
evdev: reduce the "your system is slow" warning to 5 per hour

Two cases where this can happen: system is currently slow and delaying events,
n which case we'll get a burst and it'll show up in the log files anyway. Or
the system is generally slow and we get these warnings all the time. In the
latter case, let's not spam the log.

Fixes #533

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c