From 87d2b3938fea692c58d3ff43205beb5877b3e3a6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 20 Jan 2023 11:33:16 +0100 Subject: Maths's was backwards --- driver/timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/timers.c b/driver/timers.c index 7c2cef9..76e170f 100644 --- a/driver/timers.c +++ b/driver/timers.c @@ -882,7 +882,7 @@ sleep_until_idle (saver_info *si, Bool until_idle_p) an event (again, user activity.) */ slx_update_lat (si); - idle = 1000 * (si->last_activity_time - time ((time_t *) 0)); + idle = 1000 * (time (NULL) - si->last_activity_time); } if (idle >= p->timeout) -- cgit v1.2.3-55-g7522