chiark / gitweb /
journal: log user units for coredumps and show them in systemctl status
[elogind.git] / src / login / logind.c
index ed0b7489b9a780a51c5a0f5e72a99907362a92c2..be793e2a93ca8a8f93cf059a220850d4e30e5f34 100644 (file)
@@ -1628,11 +1628,11 @@ int manager_run(Manager *m) {
 
                 manager_gc(m, true);
 
-                if (m->delayed_unit) {
+                if (m->action_what != 0) {
                         usec_t x, y;
 
                         x = now(CLOCK_MONOTONIC);
-                        y = m->delayed_timestamp + m->inhibit_delay_max;
+                        y = m->action_timestamp + m->inhibit_delay_max;
 
                         msec = x >= y ? 0 : (int) ((y - x) / USEC_PER_MSEC);
                 }