Revert "logs-show: use _SOURCE_MONOTONIC_TIMESTAMP when _SOURCE_BOOTTIME_TIMESTAMP...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Jun 2024 07:38:07 +0000 (16:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Jun 2024 15:10:12 +0000 (00:10 +0900)
commit280e85224e6273f1835a41782f2e3abd7582dd2e
treee158180b1dad14c97521da18cf0e0996fce3abfe
parent461e4656e7240eb515334dfb919da7f2d018cbb2
Revert "logs-show: use _SOURCE_MONOTONIC_TIMESTAMP when _SOURCE_BOOTTIME_TIMESTAMP field exists"

This reverts commit f5bdecba08fd3ee11bebc635ea9d17fd97bd33d7.

Some kmsg sent before sleep may be received by systemd-journald after
sleep. In that case, map_clock_usec() does not provide correct
timestamp.
So, _SOURCE_MONOTONIC_TIMESTAMP field is anyway unreliable.
Let's not use the field.
src/shared/logs-show.c