summaryrefslogtreecommitdiff
path: root/src/cgtop
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgtop')
-rw-r--r--src/cgtop/cgtop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c
index 9eb2d2fdeb..ee421e383b 100644
--- a/src/cgtop/cgtop.c
+++ b/src/cgtop/cgtop.c
@@ -447,7 +447,7 @@ static int display(Hashmap *a) {
if (rows <= 0)
rows = 25;
- path_columns = columns_uncached() - 42;
+ path_columns = columns() - 42;
if (path_columns < 10)
path_columns = 10;
@@ -653,6 +653,8 @@ int main(int argc, char *argv[]) {
goto finish;
}
+ signal(SIGWINCH, columns_cache_reset);
+
while (!quit) {
Hashmap *c;
usec_t t;