diff options
author | wiz <wiz@pkgsrc.org> | 2000-12-08 15:35:23 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2000-12-08 15:35:23 +0000 |
commit | a5a9ed0f1f164499e10a129bc78aafa5f1415321 (patch) | |
tree | 2ec0c6c44471ecdb62c7e5939ce67e33c9c1b9c4 /sysutils/top/patches | |
parent | 1c4f98b518e92d196caffc0e77538ba6244cc234 (diff) | |
download | pkgsrc-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/patches')
-rw-r--r-- | sysutils/top/patches/patch-ab | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ |