summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-09-06 10:43:22 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2012-09-06 10:43:22 (GMT)
commit50157f3decce78d3172314a5f97363faedba565a (patch)
tree9854882332701ed43af92d5ca806a8aa7bce5761
parentc4398514385f806e1725685d0fee62dc0eb69b9f (diff)
downloadbusybox-50157f3decce78d3172314a5f97363faedba565a.tar.gz
busybox-50157f3decce78d3172314a5f97363faedba565a.tar.bz2
top: fix "last CPU" parsing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/procps.c2
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