chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
man: document sd_journal_get_cutoff_realtime_usec()
[elogind.git]
/
src
/
shared
/
logs-show.c
diff --git
a/src/shared/logs-show.c
b/src/shared/logs-show.c
index e1119224e2fe13f456e0fc3834b14e27997d383d..426a9d617cf2678117ac7efafc781b6080ed81e5 100644
(file)
--- a/
src/shared/logs-show.c
+++ b/
src/shared/logs-show.c
@@
-639,7
+639,7
@@
int show_journal_by_unit(
if (r < 0)
goto finish;
- if (not_before < cutoff)
+ if (
r > 0 &&
not_before < cutoff)
printf("Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.\n");
warn_cutoff = false;