summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-03 20:28:15 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-03 22:42:38 +0100
commitc93d372d7ceda0b080487fa35d3638ef3d8507cb (patch)
tree6dbd9e55b85881bec556c65001291dbfa3fe978c
parentoutput-mode: add new helper OUTPUT_MODE_IS_JSON() (diff)
downloadsystemd-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.
-rw-r--r--src/shared/format-table.c2
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);