mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
logs-show: fix stored timestamp when advance_older is true
Currently, the parsed timestamp is only used when advance_older is false. Hence, this does not change any behavior. But, let's fix it anyway.
This commit is contained in:
@@ -1841,7 +1841,7 @@ static int discover_next_boot(
|
||||
goto try_again;
|
||||
}
|
||||
|
||||
r = sd_journal_get_realtime_usec(j, &boot.first_usec);
|
||||
r = sd_journal_get_realtime_usec(j, advance_older ? &boot.last_usec : &boot.first_usec);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
@@ -1863,7 +1863,7 @@ static int discover_next_boot(
|
||||
goto try_again;
|
||||
}
|
||||
|
||||
r = sd_journal_get_realtime_usec(j, &boot.last_usec);
|
||||
r = sd_journal_get_realtime_usec(j, advance_older ? &boot.first_usec : &boot.last_usec);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user