diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-02-22 15:34:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-02-22 22:49:40 +0100 |
commit | 0da36375ebd1c2768626692889b22c6adc3c4bab (patch) | |
tree | 218e45829d1fb825758ea817c9b8d5f8c03deba7 /src/machine | |
parent | ec93eb48f2b23b9451c3d08064b07ee23e39a053 (diff) | |
download | systemd-0da36375ebd1c2768626692889b22c6adc3c4bab.tar.gz |
tree-wide: use timestamp_is_set() more
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machinectl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 2f552a9387..64233b89c0 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -850,11 +850,11 @@ static void print_image_status_info(sd_bus *bus, ImageStatusInfo *i) { i->read_only ? "read-only" : "writable", i->read_only ? ansi_normal() : ""); - if (i->crtime > 0 && i->crtime < USEC_INFINITY) + if (timestamp_is_set(i->crtime)) printf("\t Created: %s; %s\n", FORMAT_TIMESTAMP(i->crtime), FORMAT_TIMESTAMP_RELATIVE(i->crtime)); - if (i->mtime > 0 && i->mtime < USEC_INFINITY) + if (timestamp_is_set(i->mtime)) printf("\tModified: %s; %s\n", FORMAT_TIMESTAMP(i->mtime), FORMAT_TIMESTAMP_RELATIVE(i->mtime)); |