From: Thibault Godouet Date: Wed, 1 Jan 2025 10:42:39 +0000 (+0000) Subject: Made the suspend log message clearer. X-Git-Tag: ver3_3_3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75285cb2d9d17abe81aacddcef73b1a402e1b5c6;p=thirdparty%2Ffcron.git Made the suspend log message clearer. --- diff --git a/suspend.c b/suspend.c index 80aeb99..ac0f24d 100644 --- 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); } }