]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/manager: honor show_status_overridden in manager_watch_jobs_next_time()
authorMike Yuan <me@yhndnzj.com>
Fri, 19 Sep 2025 17:35:08 +0000 (19:35 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Oct 2025 14:59:40 +0000 (16:59 +0200)
Prompted by #39029

(cherry picked from commit 4f8c1de21317818b8968f065435a2afb7cadf645)

src/core/manager.c

index d85896577f3e6b19452cae7e89346c1c99df6dd3..11903c2c5db6ea6414fe55e51707fa9439539cb4 100644 (file)
@@ -136,7 +136,7 @@ static usec_t manager_watch_jobs_next_time(Manager *m) {
                 /* Let the user manager without a timeout show status quickly, so the system manager can make
                  * use of it, if it wants to. */
                 timeout = JOBS_IN_PROGRESS_WAIT_USEC * 2 / 3;
-        else if (show_status_on(m->show_status))
+        else if (manager_get_show_status_on(m))
                 /* When status is on, just use the usual timeout. */
                 timeout = JOBS_IN_PROGRESS_WAIT_USEC;
         else