aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-03-04 01:31:48 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-03-04 01:31:48 +0000
commit8bc376bc12225a62c64269f9ce82d89860519ed7 (patch)
treeaa46922a45939bdad6f7a682016be0c021389ff5
parentdadf7907b20a305127c5e7f3adb0ba3f69a0b0b0 (diff)
downloadbusybox-8bc376bc12225a62c64269f9ce82d89860519ed7.tar.gz
busybox-8bc376bc12225a62c64269f9ce82d89860519ed7.tar.bz2
top: fix for 2.4 kernels
-rw-r--r--procps/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c
index 1d22871f6..7342dacac 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -200,7 +200,7 @@ static NOINLINE int read_cpu_jiffy(FILE *fp, jiffy_counts_t *p_jif)
&p_jif->usr, &p_jif->nic, &p_jif->sys, &p_jif->idle,
&p_jif->iowait, &p_jif->irq, &p_jif->softirq,
&p_jif->steal);
- if (ret > 4) {
+ if (ret >= 4) {
p_jif->total = p_jif->usr + p_jif->nic + p_jif->sys + p_jif->idle
+ p_jif->iowait + p_jif->irq + p_jif->softirq + p_jif->steal;
/* procps 2.x does not count iowait as busy time */