From d2c911b805160a8060dd517f4305d2ed99850575 Mon Sep 17 00:00:00 2001 From: Forza Date: Mon, 30 Dec 2024 14:26:36 +0100 Subject: [PATCH] fsmon: fix minimum height calculation --- fsmon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsmon.py b/fsmon.py index 85d6630..9eb80b3 100755 --- a/fsmon.py +++ b/fsmon.py @@ -402,7 +402,7 @@ def display_ui(stdscr, btrfs_fs, fs_labels): # Prevent drawing UI if terminal is too small height, width = stdscr.getmaxyx() - MIN_HEIGHT = len(uuids) + 4 # Enough to show list without charts + MIN_HEIGHT = len(uuids) + 5 # Enough to show list without charts if (height < MIN_HEIGHT) or (width < MIN_WIDTH): stdscr.addstr( 0, 0, f"Terminal too small (need ≥ {MIN_HEIGHT}x{MIN_WIDTH})."