aboutsummaryrefslogtreecommitdiff
path: root/procps/ps.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/ps.c')
-rw-r--r--procps/ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/ps.c b/procps/ps.c
index bde5f9485..fbafa68a9 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -622,7 +622,7 @@ int ps_main(int argc UNUSED_PARAM, char **argv)
622 * and such large widths */ 622 * and such large widths */
623 terminal_width = MAX_WIDTH; 623 terminal_width = MAX_WIDTH;
624 if (isatty(1)) { 624 if (isatty(1)) {
625 get_terminal_width_height(0, &terminal_width, NULL); 625 terminal_width = get_terminal_width(0);
626 if (--terminal_width > MAX_WIDTH) 626 if (--terminal_width > MAX_WIDTH)
627 terminal_width = MAX_WIDTH; 627 terminal_width = MAX_WIDTH;
628 } 628 }
@@ -672,7 +672,7 @@ int ps_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
672 if (w_count) { 672 if (w_count) {
673 terminal_width = (w_count == 1) ? 132 : MAX_WIDTH; 673 terminal_width = (w_count == 1) ? 132 : MAX_WIDTH;
674 } else { 674 } else {
675 get_terminal_width_height(0, &terminal_width, NULL); 675 terminal_width = get_terminal_width(0);
676 /* Go one less... */ 676 /* Go one less... */
677 if (--terminal_width > MAX_WIDTH) 677 if (--terminal_width > MAX_WIDTH)
678 terminal_width = MAX_WIDTH; 678 terminal_width = MAX_WIDTH;