chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: simplify column caching logic
[elogind.git]
/
src
/
cgtop
/
cgtop.c
diff --git
a/src/cgtop/cgtop.c
b/src/cgtop/cgtop.c
index 9eb2d2fdebd108080ba9caaf2ecabb1acfed7880..ee421e383b2eec9e2314a006d79daee71033a32a 100644
(file)
--- 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;