aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firemon/top.c')
-rw-r--r--src/firemon/top.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/firemon/top.c b/src/firemon/top.c
index 55a35d93d..3a79a5260 100644
--- a/src/firemon/top.c
+++ b/src/firemon/top.c
@@ -275,8 +275,10 @@ void top(void) {
275 int row = 24; 275 int row = 24;
276 int col = 80; 276 int col = 80;
277 if (!ioctl(STDIN_FILENO, TIOCGWINSZ, &sz)) { 277 if (!ioctl(STDIN_FILENO, TIOCGWINSZ, &sz)) {
278 col = sz.ws_col; 278 if (sz.ws_col > 0 && sz.ws_row > 0) {
279 row = sz.ws_row; 279 col = sz.ws_col;
280 row = sz.ws_row;
281 }
280 } 282 }
281 283
282 // start printing 284 // start printing