diff options
author | Simon Rettberg | 2019-05-14 15:34:50 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-14 15:34:50 +0200 |
commit | bd7aa4abfae5ed5bc21ff92be1698cef94da3020 (patch) | |
tree | 0c2130592176a4b6a8fc691b9f9eb9e3c5118037 | |
parent | f() -> f(void) (diff) | |
download | idle-daemon-bd7aa4abfae5ed5bc21ff92be1698cef94da3020.tar.gz idle-daemon-bd7aa4abfae5ed5bc21ff92be1698cef94da3020.tar.xz idle-daemon-bd7aa4abfae5ed5bc21ff92be1698cef94da3020.zip |
Fix DPMS timeout calculation
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -143,7 +143,7 @@ int main( int argc, char **argv ) int want = SCREEN_UNKNOWN; if ( config.logoutTimeout > 0 && idleTime + 300 > config.logoutTimeout ) { want = SCREEN_ON; - } else if ( ! nextAction.disarmed && nextAction.deadline != 0 && monoNOW - nextAction.deadline < 300 ) { + } else if ( ! nextAction.disarmed && nextAction.deadline != 0 && nextAction.deadline - monoNOW < 300 ) { want = SCREEN_ON; } else if ( idleTime > config.dpmsTimeout && screen.idleSeconds >= 60 ) { want = SCREEN_OFF; |