From: Denys Vlasenko Date: Thu, 6 Sep 2012 10:43:22 +0000 (+0200) Subject: top: fix "last CPU" parsing X-Git-Tag: 1_21_0~80 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=50157f3decce78d3172314a5f97363faedba565a;p=oweals%2Fbusybox.git top: fix "last CPU" parsing Signed-off-by: Denys Vlasenko --- 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