]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgtop: make sure help text doesn't cause main contents to move
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Sep 2015 22:48:49 +0000 (00:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2015 14:31:02 +0000 (16:31 +0200)
Let's always keep space for the full help text. (We used to do that, but
recently another line of help was added which broke this.)

src/cgtop/cgtop.c

index 9e1af4ec7a522cdccfa443dfb2f883d1a9bbdbe3..9cf13cf57d62eb6e52e26e8f32d985900aa160fd 100644 (file)
@@ -602,7 +602,7 @@ static void display(Hashmap *a) {
                 _cleanup_free_ char *ellipsized = NULL;
                 const char *path;
 
-                if (on_tty() && j + 5 > rows)
+                if (on_tty() && j + 6 > rows)
                         break;
 
                 g = array[j];