daandemeyer / rpms / systemd

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