summaryrefslogtreecommitdiff
path: root/sysutils/top
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-12-08 15:35:23 +0000
committerwiz <wiz@pkgsrc.org>2000-12-08 15:35:23 +0000
commita5a9ed0f1f164499e10a129bc78aafa5f1415321 (patch)
tree2ec0c6c44471ecdb62c7e5939ce67e33c9c1b9c4 /sysutils/top
parent1c4f98b518e92d196caffc0e77538ba6244cc234 (diff)
downloadpkgsrc-a5a9ed0f1f164499e10a129bc78aafa5f1415321.tar.gz
Commit first patch from pkg/6979. CPU percentage is already normalized,
and so the code fragment was wrong for HZ != 100.
Diffstat (limited to 'sysutils/top')
-rw-r--r--sysutils/top/files/patch-sum4
-rw-r--r--sysutils/top/patches/patch-ab8
2 files changed, 6 insertions, 6 deletions
diff --git a/sysutils/top/files/patch-sum b/sysutils/top/files/patch-sum
index df16e997267..7acc4060a1b 100644
--- a/sysutils/top/files/patch-sum
+++ b/sysutils/top/files/patch-sum
@@ -1,7 +1,7 @@
-$NetBSD: patch-sum,v 1.5 2000/02/19 20:59:37 wiz Exp $
+$NetBSD: patch-sum,v 1.6 2000/12/08 15:35:23 wiz Exp $
MD5 (patch-aa) = 233a2cce23bbbc15181093662c27e2e1
-MD5 (patch-ab) = fce7475bedbb58fe7b6706f5788ab1af
+MD5 (patch-ab) = afe5640796507a0ae68a86c89168c183
MD5 (patch-ac) = 3f83e316913340c9bf47e9189fda82f7
MD5 (patch-ae) = 3edecc1bc00be6512c21b7320fd6aa5f
MD5 (patch-af) = af572aee1b594fff3f66c815d2538f56
diff --git a/sysutils/top/patches/patch-ab b/sysutils/top/patches/patch-ab
index 149fe21ea03..4e03a990022 100644
--- a/sysutils/top/patches/patch-ab
+++ b/sysutils/top/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.9 2000/02/19 02:40:35 wiz Exp $
+$NetBSD: patch-ab,v 1.10 2000/12/08 15:35:24 wiz Exp $
--- ./machine/m_netbsd13.c.orig Sat Feb 19 03:24:47 2000
+++ ./machine/m_netbsd13.c Sat Feb 19 03:31:13 2000
@@ -31,7 +31,7 @@ $NetBSD: patch-ab,v 1.9 2000/02/19 02:40:35 wiz Exp $
+ * matthew green <mrg@eterna.com.au>
+ *
+ *
-+ * $Id: patch-ab,v 1.9 2000/02/19 02:40:35 wiz Exp $
++ * $Id: patch-ab,v 1.10 2000/12/08 15:35:24 wiz Exp $
+ */
+
+#include <sys/types.h>
@@ -571,8 +571,8 @@ $NetBSD: patch-ab,v 1.9 2000/02/19 02:40:35 wiz Exp $
+ format_k(pagetok(VP(pp, vm_rssize))),
+ state_abbrev[(unsigned char) PP(pp, p_stat)],
+ format_time(cputime),
-+ 10000.0 * weighted_cpu(pct, pp) / hz,
-+ 10000.0 * pct / hz,
++ 100.0 * weighted_cpu(pct, pp),
++ 100.0 * pct,
+ printable(PP(pp, p_comm)));
+
+ /* return the result */