aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/other/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/vmstat.c b/toys/other/vmstat.c
index 8e131d9f..44f73d49 100644
--- a/toys/other/vmstat.c
+++ b/toys/other/vmstat.c
@@ -95,7 +95,7 @@ void vmstat_main(void)
if (rows>3 && !(loop % (rows-3))) {
char *header = headers;
- if ((!toys.optflags&FLAG_n) && isatty(1)) terminal_size(0, &rows);
+ if (!(toys.optflags&FLAG_n) && isatty(1)) terminal_size(0, &rows);
else rows = 0;
printf("procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----\n");