diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-10-18 23:50:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-10-19 00:07:55 +0200 |
commit | 28917d7dc711746795f7e6468c06c1983a5cdf53 (patch) | |
tree | 61d0e8fb926c3a411cfbc4705a622135bfbbb381 /src/cgtop/cgtop.c | |
parent | 774471b68a948e58c9fc79d61b6f79dbc2e01b37 (diff) |
util: simplify column caching logic
Diffstat (limited to 'src/cgtop/cgtop.c')
-rw-r--r-- | src/cgtop/cgtop.c | 4 |
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; |