diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-03 20:28:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-12-03 22:42:38 +0100 |
commit | c93d372d7ceda0b080487fa35d3638ef3d8507cb (patch) | |
tree | 6dbd9e55b85881bec556c65001291dbfa3fe978c /src/shared/format-table.c | |
parent | output-mode: add new helper OUTPUT_MODE_IS_JSON() (diff) | |
download | systemd-c93d372d7ceda0b080487fa35d3638ef3d8507cb.tar.xz systemd-c93d372d7ceda0b080487fa35d3638ef3d8507cb.zip |
format-table: use right field for display
Since .timespan and .timestamp are unionized on top of each other this
doesn't actually matter, but it is still more correct to address it
under it's correct name.
Diffstat (limited to 'src/shared/format-table.c')
-rw-r--r-- | src/shared/format-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/format-table.c b/src/shared/format-table.c index e685efea0e..f3cc9b9185 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -884,7 +884,7 @@ static const char *table_data_format(TableData *d) { if (!p) return NULL; - if (!format_timespan(p, FORMAT_TIMESPAN_MAX, d->timestamp, 0)) + if (!format_timespan(p, FORMAT_TIMESPAN_MAX, d->timespan, 0)) return "n/a"; d->formatted = TAKE_PTR(p); |