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)" --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
From cb3b43d84b286b34012ee1b2a0e139509bb46418 Mon Sep 17 00:00:00 2001 From: Elliott Hughes <[email protected]> Date: Tue, 26 Feb 2019 13:26:45 -0800 Subject: [PATCH] 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)" --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.21.0.rc2.261.ga7da99ff1b-goog
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
