]> git.ipfire.org Git - thirdparty/systemd.git/commit
logs-show: rename "ts" paramater/variable to "display_ts" 26337/head
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Feb 2023 10:20:24 +0000 (11:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Feb 2023 14:52:22 +0000 (15:52 +0100)
commit4e30b87d941c567509d0239dc30f993d0ac9dc1b
tree601af5ca2074e1cd9c3f0d1ff7ab6ee2463c746c
parent8586e8ab84b46d22ce904a84b6f1c3f798dad24e
logs-show: rename "ts" paramater/variable to "display_ts"

When displaying log data we deal with two kind of timestamps: the one we
use for display (typically the source timestamp if available), and the
one we use internally (typically the reception timestamp of journald).

The user-facing output modes generally use the display timestamp, the
ones intended for further processing (i.e. json + export outputs) do
not, and directly query the timestamps of the entry, ignoring the
source. This gets a bit confusing, since it's not always clear why we
use which timestamp where. Let's address that by renaming the generic
"ts" parameter/variable to "display_ts" to emphasize that the stored
timestamp are "corrected" timestamps for display only.

No real code change, just some renaming.
src/shared/logs-show.c
src/shared/logs-show.h