mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-13 12:58:20 +03:00
journalctl: print correct timespan in verify
The old code used a timestamp to print a timespan for unsealed journalfiles, incorrectly showing things like 2230 days of unsealed entries. Print the timespan between the first and last entry instead.
This commit is contained in:
parent
9086e840ff
commit
73726ac898
@ -710,7 +710,7 @@ static int verify(sd_journal *j) {
|
||||
format_timespan(c, sizeof(c), total > to ? total - to : 0));
|
||||
} else if (total > 0)
|
||||
log_info("=> No sealing yet, %s of entries not sealed.",
|
||||
format_timespan(c, sizeof(c), total));
|
||||
format_timespan(c, sizeof(c), total - f->header->head_entry_realtime));
|
||||
else
|
||||
log_info("=> No sealing yet, no entries in file.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user