fix from Seiichi SATO <ssato@sh.rim.or.jp>, through maintainer
This commit is contained in:
parent
4cc31fda35
commit
4461feeb83
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user