summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-07-27 11:50:37 +0200
committerLennart Poettering <lennart@poettering.net>2016-08-04 16:27:07 +0200
commitaf9d16e10a23899b821af19e54e339486a86bd82 (patch)
treef73fb7bd2a55237a30772355eec82bb72a28aaf1 /src/core
parent9c1a61adba1ed61a405bc30675f08b8442eefd70 (diff)
core: use the correct APIs to determine whether a dual timestamp is initialized
Diffstat (limited to 'src/core')
-rw-r--r--src/core/execute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index bc0fd27402..9028139723 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -2969,12 +2969,12 @@ void exec_status_dump(ExecStatus *s, FILE *f, const char *prefix) {
"%sPID: "PID_FMT"\n",
prefix, s->pid);
- if (s->start_timestamp.realtime > 0)
+ if (dual_timestamp_is_set(&s->start_timestamp))
fprintf(f,
"%sStart Timestamp: %s\n",
prefix, format_timestamp(buf, sizeof(buf), s->start_timestamp.realtime));
- if (s->exit_timestamp.realtime > 0)
+ if (dual_timestamp_is_set(&s->exit_timestamp))
fprintf(f,
"%sExit Timestamp: %s\n"
"%sExit Code: %s\n"