diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-10-17 12:58:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 12:58:55 +0200 |
commit | cdc31c592af3d5d9b1977b81e45571de12d5df5b (patch) | |
tree | eee671da34b5b2ecb9434beb0e652586acb898da /src/core/timer.c | |
parent | f213900b5a80cc7a269f3da7e4f68b703c2edf32 (diff) | |
parent | 6e2c9ce1b6940c93d1bfdb26d75dec5a2885664b (diff) |
Merge pull request #4392 from keszybz/running-timers
Fix for display of elapsed timers
Diffstat (limited to 'src/core/timer.c')
-rw-r--r-- | src/core/timer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/timer.c b/src/core/timer.c index 9538059c13..2469a517ea 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -261,6 +261,8 @@ static void timer_set_state(Timer *t, TimerState state) { if (state != TIMER_WAITING) { t->monotonic_event_source = sd_event_source_unref(t->monotonic_event_source); t->realtime_event_source = sd_event_source_unref(t->realtime_event_source); + t->next_elapse_monotonic_or_boottime = USEC_INFINITY; + t->next_elapse_realtime = USEC_INFINITY; } if (state != old_state) |