diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-04 19:10:11 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-04 19:12:47 +0200 |
commit | 1f65fd4926c5b88db770c1b47a0b0a24c2319d12 (patch) | |
tree | 3ff3c0268a5d02aa96fcde241816fcb2bf7b6e02 /src/analyze/analyze.c | |
parent | Merge pull request #12946 from poettering/blockdev-tweaks (diff) | |
download | systemd-1f65fd4926c5b88db770c1b47a0b0a24c2319d12.tar.xz systemd-1f65fd4926c5b88db770c1b47a0b0a24c2319d12.zip |
basic/time-util: add helper function to check if timestamp is set
No functional change.
Diffstat (limited to 'src/analyze/analyze.c')
-rw-r--r-- | src/analyze/analyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 40f54f9d46..97642660e4 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -544,7 +544,7 @@ static int pretty_boot_time(sd_bus *bus, char **_buf) { if (t->kernel_done_time > 0) strpcpyf(&ptr, size, "= %s ", format_timespan(ts, sizeof(ts), t->firmware_time + t->finish_time, USEC_PER_MSEC)); - if (unit_id && activated_time > 0 && activated_time != USEC_INFINITY) { + if (unit_id && timestamp_is_set(activated_time)) { usec_t base = t->userspace_time > 0 ? t->userspace_time : t->reverse_offset; size = strpcpyf(&ptr, size, "\n%s reached after %s in userspace", unit_id, |