mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
core: use the correct APIs to determine whether a dual timestamp is initialized
This commit is contained in:
parent
9c1a61adba
commit
af9d16e10a
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user