logs-show: do not use _SOURCE_MONOTONIC_TIMESTAMP field v256.1
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Jun 2024 08:55:31 +0000 (17:55 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Jun 2024 18:41:01 +0000 (20:41 +0200)
commit34ba18b0124407403690738b46fbd6236fe65c92
tree59e1fe0085540c2dd20a2ffa171f0bb8c732f7d4
parentf8f669fd69bf15f386308ef8f4cbbbd5a7ad69cd
logs-show: do not use _SOURCE_MONOTONIC_TIMESTAMP field

The timestamp is not in CLOCK_MONOTONIC, but CLOCK_BOOTTIME,
while header monotonic timestamp is in CLOCK_MONOTONIC. Hence, we cannot
adjust timestamp by comparing with header monotonic timestamp and
_SOURCE_MONOTONIC_TIMESTAMP field.

Fixes a regression caused by affde1d7e79a634ee6053dbd4a57b3b51b74c170.
Fixes #33293.

(cherry picked from commit 144498e7e6efe2d90981cb14e3ed462a70a955c6)
src/shared/logs-show.c