]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
Made the suspend log message clearer.
authorThibault Godouet <yo8192@users.noreply.github.com>
Wed, 1 Jan 2025 10:42:39 +0000 (10:42 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Wed, 1 Jan 2025 10:42:39 +0000 (10:42 +0000)
suspend.c

index 80aeb9904a8865385eb200fa128e1fa1c2a42f48..ac0f24dde2c1b71ba1ad4c8ef57704ba06d76810 100644 (file)
--- a/suspend.c
+++ b/suspend.c
@@ -304,9 +304,9 @@ check_suspend(time_t slept_from, time_t nwt, bool *sig_cont,
         long int actual_sleep = now - slept_from;
         long int scheduled_sleep = nwt - slept_from;
 
-        explain("suspend/hibernate detected: we woke up after %lus"
-                " instead of %lus. The system was suspended for %lus.",
-                actual_sleep, scheduled_sleep, suspend_duration);
+        explain("suspend/hibernate detected: The system was suspended for "
+        "%lus (and we woke up after %lus instead of our intended %lus sleep).",
+        suspend_duration, actual_sleep, scheduled_sleep);
         reschedule_all_on_resume(suspend_duration);
     }
 }