top: fix "last CPU" parsing
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Sep 2012 10:43:22 +0000 (12:43 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Sep 2012 10:43:22 +0000 (12:43 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/procps.c

index 40587db82b193883ae1f238792c44c9778297b86..295048c4660e476a43dfc77e464f4851e88b530d 100644 (file)
@@ -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