diff options
author | wiz <wiz> | 2000-12-08 15:35:23 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-12-08 15:35:23 +0000 |
commit | 3f413bb0c5f126284be38d834f5bf5f09ff3040d (patch) | |
tree | 2ec0c6c44471ecdb62c7e5939ce67e33c9c1b9c4 /sysutils/top/patches/patch-ab | |
parent | 411438fec91e4f9a0b121e521f87eda84ba7866c (diff) | |
download | pkgsrc-3f413bb0c5f126284be38d834f5bf5f09ff3040d.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/patch-ab')
-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 */ |