diff options
author | Mirco Tischler <mt-ml@gmx.de> | 2012-09-22 21:45:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-24 14:56:52 +0200 |
commit | 73726ac8983f46f9a39ad76c395e86d9bbfb470c (patch) | |
tree | 9884f80b2ba684d2383c626b6821f00f1a8053fa /src/journal | |
parent | 9086e840ff36701dd44ba16b23570c129d210d3a (diff) |
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.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journalctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index e491c27662..b9be0c6ef7 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -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."); } |