Blame SOURCES/0135-format-table-use-right-field-for-display.patch

a3e2b5
From d4c1d109a883fbc5695cf10c79e61bedbe788829 Mon Sep 17 00:00:00 2001
a3e2b5
From: Lennart Poettering <lennart@poettering.net>
a3e2b5
Date: Mon, 3 Dec 2018 20:28:15 +0100
a3e2b5
Subject: [PATCH] format-table: use right field for display
a3e2b5
a3e2b5
Since .timespan and .timestamp are unionized on top of each other this
a3e2b5
doesn't actually matter, but it is still more correct to address it
a3e2b5
under it's correct name.
a3e2b5
a3e2b5
(cherry picked from commit c93d372d7ceda0b080487fa35d3638ef3d8507cb)
a3e2b5
a3e2b5
Related: #1689832
a3e2b5
---
a3e2b5
 src/basic/format-table.c | 2 +-
a3e2b5
 1 file changed, 1 insertion(+), 1 deletion(-)
a3e2b5
a3e2b5
diff --git a/src/basic/format-table.c b/src/basic/format-table.c
a3e2b5
index 5517adad82..cfb8aadbda 100644
a3e2b5
--- a/src/basic/format-table.c
a3e2b5
+++ b/src/basic/format-table.c
a3e2b5
@@ -928,7 +928,7 @@ static const char *table_data_format(TableData *d) {
a3e2b5
                 if (!p)
a3e2b5
                         return NULL;
a3e2b5
 
a3e2b5
-                if (!format_timespan(p, FORMAT_TIMESPAN_MAX, d->timestamp, 0))
a3e2b5
+                if (!format_timespan(p, FORMAT_TIMESPAN_MAX, d->timespan, 0))
a3e2b5
                         return "n/a";
a3e2b5
 
a3e2b5
                 d->formatted = TAKE_PTR(p);