mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
format-table: use format_timestamp_relative_monotonic
This commit is contained in:
parent
a53dc9b130
commit
62efc7629b
@ -1586,9 +1586,7 @@ static const char *table_data_format(Table *t, TableData *d, bool avoid_uppercas
|
||||
else if (d->type == TABLE_TIMESTAMP_DATE)
|
||||
ret = format_timestamp_style(p, FORMAT_TIMESTAMP_MAX, d->timestamp, TIMESTAMP_DATE);
|
||||
else if (d->type == TABLE_TIMESTAMP_RELATIVE_MONOTONIC)
|
||||
ret = format_timestamp_relative_full(p, FORMAT_TIMESTAMP_RELATIVE_MAX,
|
||||
d->timestamp, CLOCK_MONOTONIC,
|
||||
/* implicit_left = */ false);
|
||||
ret = format_timestamp_relative_monotonic(p, FORMAT_TIMESTAMP_RELATIVE_MAX, d->timestamp);
|
||||
else
|
||||
ret = format_timestamp_relative_full(p, FORMAT_TIMESTAMP_RELATIVE_MAX,
|
||||
d->timestamp, CLOCK_REALTIME,
|
||||
|
Loading…
x
Reference in New Issue
Block a user