chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Belarussian mapping: simple, 'by' and 'by'
[elogind.git]
/
src
/
cgtop
/
cgtop.c
diff --git
a/src/cgtop/cgtop.c
b/src/cgtop/cgtop.c
index ee421e383b2eec9e2314a006d79daee71033a32a..f2e62761f14b6b7cef761975bd43491b7f4f62cc 100644
(file)
--- a/
src/cgtop/cgtop.c
+++ b/
src/cgtop/cgtop.c
@@
-443,9
+443,9
@@
static int display(Hashmap *a) {
qsort(array, n, sizeof(Group*), group_compare);
qsort(array, n, sizeof(Group*), group_compare);
- rows =
fd_lines(STDOUT_FILENO
);
- if (rows <= 0)
- rows =
25
;
+ rows =
lines(
);
+ if (rows <=
1
0)
+ rows =
10
;
path_columns = columns() - 42;
if (path_columns < 10)
path_columns = columns() - 42;
if (path_columns < 10)
@@
-653,7
+653,7
@@
int main(int argc, char *argv[]) {
goto finish;
}
goto finish;
}
- signal(SIGWINCH, columns_cache_reset);
+ signal(SIGWINCH, columns_
lines_
cache_reset);
while (!quit) {
Hashmap *c;
while (!quit) {
Hashmap *c;