journalctl: make --follow work again

Stopped working after cfbc22ab 'journalctl: implement --since= and
--until for filtering by time'.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2012-10-13 19:21:07 +00:00
parent 0ab5c3ed87
commit e3ed66c52e
1 changed files with 1 additions and 6 deletions

View File

@ -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) {