diff options
author | Simon Rettberg | 2023-01-20 11:33:16 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-01-20 11:33:16 +0100 |
commit | 87d2b3938fea692c58d3ff43205beb5877b3e3a6 (patch) | |
tree | e99085b883db76aee65f5a6a3527913086c61177 | |
parent | timers.c: Query MIT_SAVER extension for current idle time (diff) | |
download | xscreensaver-87d2b3938fea692c58d3ff43205beb5877b3e3a6.tar.gz xscreensaver-87d2b3938fea692c58d3ff43205beb5877b3e3a6.tar.xz xscreensaver-87d2b3938fea692c58d3ff43205beb5877b3e3a6.zip |
Maths's was backwards
-rw-r--r-- | driver/timers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |