aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-02-26 13:26:45 -0800
committerRob Landley <rob@landley.net>2019-02-27 08:21:17 -0600
commit044c0d9030859c059d1dbce9dc9eb963a828605f (patch)
tree1160a9b9458fa12712315b38f56171edd0d5a27d
parent8e82fca1cd7e2a39a4e8bdbfadc73b95178be1d9 (diff)
downloadtoybox-044c0d9030859c059d1dbce9dc9eb963a828605f.tar.gz
top: fix -b.
We hadn't updated the output in -b mode ever since I broke this in 2016. Bug: http://b/126347053 "top doesn't seem to update the output when run in batch mode (-b)"
-rw-r--r--toys/posix/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index c0e7e9e9..7cf6e0dd 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1676,7 +1676,7 @@ static void top_common(
msleep(timeout-now);
// Make an obvious gap between datasets.
xputs("\n\n");
- continue;
+ break;
} else fflush(stdout);
i = scan_key_getsize(scratch, timeout-now, &TT.width, &TT.height);