diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-06 12:43:22 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-06 12:43:22 +0200 |
commit | 50157f3decce78d3172314a5f97363faedba565a (patch) | |
tree | 9854882332701ed43af92d5ca806a8aa7bce5761 /libbb | |
parent | c4398514385f806e1725685d0fee62dc0eb69b9f (diff) | |
download | busybox-50157f3decce78d3172314a5f97363faedba565a.tar.gz |
top: fix "last CPU" parsing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/procps.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |