From 9ee8bbb6f7c27271bab51346a6c5d6498758768f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Thu, 15 Apr 2021 19:29:31 +0200 Subject: [PATCH] daemon: Only update idle status every 10 seconds This slightly reduces DBus traffic on nodes as we don't really need to update systemd status more often than that. --- src/daemon/rpmostreed-daemon.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/rpmostreed-daemon.cxx b/src/daemon/rpmostreed-daemon.cxx index 83eeaa84..60ae58e7 100644 --- a/src/daemon/rpmostreed-daemon.cxx +++ b/src/daemon/rpmostreed-daemon.cxx @@ -583,7 +583,7 @@ update_status (RpmostreedDaemon *self) /* This source ensures we update the systemd status to show admins * when we may auto-exit. */ - self->rerender_status_id = g_timeout_add_seconds (1, idle_update_status, self); + self->rerender_status_id = g_timeout_add_seconds (10, idle_update_status, self); sd_journal_print (LOG_INFO, "In idle state; will auto-exit in %u seconds", idle_exit_secs); } else if (!currently_idle && self->idle_exit_source)