mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user