mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
journalctl: make --follow work again
Stopped working after cfbc22ab 'journalctl: implement --since= and --until for filtering by time'.
This commit is contained in:
parent
0ab5c3ed87
commit
e3ed66c52e
@ -917,14 +917,9 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
for (;;) {
|
||||
while (arg_lines == 0 || n_shown < arg_lines) {
|
||||
int flags;
|
||||
|
||||
if (arg_lines > 0 && n_shown >= arg_lines) {
|
||||
r = 0;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (need_seek) {
|
||||
r = sd_journal_next(j);
|
||||
if (r < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user