logs-show: do not use _SOURCE_MONOTONIC_TIMESTAMP field
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Jun 2024 08:55:31 +0000 (17:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Jun 2024 08:57:40 +0000 (17:57 +0900)
commit144498e7e6efe2d90981cb14e3ed462a70a955c6
tree87ea9adaceccf3ba8a1933d9a66afd57770c1ec7
parent2dda7bd2414628271a394a961e17b6ecb1f5f260
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.
src/shared/logs-show.c