chiark / gitweb /
journalctl: respect --after-cursor semantics with --follow in all cases
[elogind.git] / src / journal / journal-file.c
index 7858435badfd9bcb870beb3537bb242a884f2058..c5d2d19433a0aeabd0d01b5edf172be5f9cbef65 100644 (file)
@@ -1657,7 +1657,7 @@ static int generic_array_bisect(
                         }
                 }
 
-                if (k > n) {
+                if (k >= n) {
                         if (direction == DIRECTION_UP) {
                                 i = n;
                                 subtract_one = true;