From 4461feeb8324582432967cafa003e10a98387560 Mon Sep 17 00:00:00 2001 From: naddy Date: Sun, 6 Jan 2002 16:54:49 +0000 Subject: [PATCH] fix from Seiichi SATO , through maintainer --- sysutils/wmmon/patches/patch-wmmon_wmmon_c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysutils/wmmon/patches/patch-wmmon_wmmon_c b/sysutils/wmmon/patches/patch-wmmon_wmmon_c index da9ec51a229..0b9f5861962 100644 --- a/sysutils/wmmon/patches/patch-wmmon_wmmon_c +++ b/sysutils/wmmon/patches/patch-wmmon_wmmon_c @@ -1,4 +1,4 @@ -$OpenBSD: patch-wmmon_wmmon_c,v 1.2 2001/04/14 02:38:31 naddy Exp $ +$OpenBSD: patch-wmmon_wmmon_c,v 1.3 2002/01/06 16:54:49 naddy Exp $ --- wmmon/wmmon.c.orig Wed May 20 03:13:16 1998 +++ wmmon/wmmon.c Thu Apr 5 23:52:44 2001 @@ -28,6 +28,10 @@ @@ -301,8 +301,8 @@ $OpenBSD: patch-wmmon_wmmon_c,v 1.2 2001/04/14 02:38:31 naddy Exp $ + bzero(&total, sizeof(total)); + + /* FIXME: is it right to count memory like this */ -+ st->rt_idle = pagetok(total.t_rm); -+ st->rt_stat = pagetok(total.t_arm); ++ st->rt_idle = pagetok(total.t_rm + total.t_free); ++ st->rt_stat = pagetok(total.t_rm); + + if ( !swapmode(&st2->rt_stat, &st2->rt_idle) ) { + st2->rt_idle = 0;