[git commit] top: fix "last CPU" parsing

Denys Vlasenko vda.linux at googlemail.com
Thu Sep 6 10:43:22 UTC 2012


commit: http://git.busybox.net/busybox/commit/?id=50157f3decce78d3172314a5f97363faedba565a
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/procps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libbb/procps.c b/libbb/procps.c
index 40587db..295048c 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -425,7 +425,7 @@ procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags)
 			if (n < 11)
 				continue; /* bogus data, get next /proc/XXX */
 # if ENABLE_FEATURE_TOP_SMP_PROCESS
-			if (n < 11+15)
+			if (n == 11)
 				sp->last_seen_on_cpu = 0;
 # endif
 


More information about the busybox-cvs mailing list