From: Mike Yuan Date: Wed, 23 Aug 2023 12:29:04 +0000 (+0800) Subject: format-table: use format_timestamp_relative_monotonic X-Git-Tag: v255-rc1~600^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62efc7629b7c56f475323af04677637399e9fd27;p=thirdparty%2Fsystemd.git format-table: use format_timestamp_relative_monotonic --- diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 679e835db5b..20e1675d0de 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -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,