projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c439851
)
top: fix "last CPU" parsing
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Sep 2012 10:43:22 +0000
(12:43 +0200)
committer
Denys 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
patch
|
blob
|
history
diff --git
a/libbb/procps.c
b/libbb/procps.c
index 40587db82b193883ae1f238792c44c9778297b86..295048c4660e476a43dfc77e464f4851e88b530d 100644
(file)
--- 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