X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcgtop%2Fcgtop.c;h=ee421e383b2eec9e2314a006d79daee71033a32a;hp=9eb2d2fdebd108080ba9caaf2ecabb1acfed7880;hb=28917d7dc711746795f7e6468c06c1983a5cdf53;hpb=774471b68a948e58c9fc79d61b6f79dbc2e01b37 diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 9eb2d2fde..ee421e383 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;