projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbfcf6
)
timer: use dual_timestamp_is_set() at one more place
author
David Tardon
<dtardon@redhat.com>
Wed, 24 May 2023 13:29:30 +0000
(15:29 +0200)
committer
David Tardon
<dtardon@redhat.com>
Wed, 24 May 2023 14:41:41 +0000
(16:41 +0200)
src/core/timer.c
patch
|
blob
|
history
diff --git
a/src/core/timer.c
b/src/core/timer.c
index aab376e5cc775c03df20f01f1e424c60b9bdd941..22cdb45d85173cfadcde1454ee272f61bcec45af 100644
(file)
--- a/
src/core/timer.c
+++ b/
src/core/timer.c
@@
-688,7
+688,7
@@
static int timer_serialize(Unit *u, FILE *f, FDSet *fds) {
(void) serialize_item(f, "state", timer_state_to_string(t->state));
(void) serialize_item(f, "result", timer_result_to_string(t->result));
- if (
t->last_trigger.realtime > 0
)
+ if (
dual_timestamp_is_set(&t->last_trigger)
)
(void) serialize_usec(f, "last-trigger-realtime", t->last_trigger.realtime);
if (t->last_trigger.monotonic > 0)