From 50157f3decce78d3172314a5f97363faedba565a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 6 Sep 2012 12:43:22 +0200 Subject: [PATCH] top: fix "last CPU" parsing Signed-off-by: Denys Vlasenko --- libbb/procps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/procps.c b/libbb/procps.c index 40587db82..295048c46 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