summaryrefslogtreecommitdiff
path: root/x11/xmeter
diff options
context:
space:
mode:
authorlukem <lukem>2001-05-09 01:24:33 +0000
committerlukem <lukem>2001-05-09 01:24:33 +0000
commit10c313bf81fc21f4104e5806c8678da5284b8f3d (patch)
treec5626509ac2082ac3691d7e88188087682b238e1 /x11/xmeter
parentf82eec7d6c42555211e08828e449c93b18883b70 (diff)
downloadpkgsrc-10c313bf81fc21f4104e5806c8678da5284b8f3d.tar.gz
#undef FSHIFT and FSCALE before including <rpcsvc/rstat.h>, so that the
rstat protocol's FSCALE of 1<<8 gets used instead of <sys/param.h>'s 1<<11. Without this fix (which rup also has), load averages are 8 times too low.
Diffstat (limited to 'x11/xmeter')
-rw-r--r--x11/xmeter/patches/patch-aa11
1 files changed, 10 insertions, 1 deletions
diff --git a/x11/xmeter/patches/patch-aa b/x11/xmeter/patches/patch-aa
index 58b0832f037..67dff2d84a9 100644
--- a/x11/xmeter/patches/patch-aa
+++ b/x11/xmeter/patches/patch-aa
@@ -1,9 +1,18 @@
-$NetBSD: patch-aa,v 1.1.1.1 1998/10/30 10:53:41 agc Exp $
+$NetBSD: patch-aa,v 1.2 2001/05/09 01:24:33 lukem Exp $
Use the right signal handler type.
--- xmeter.c 1998/10/30 10:41:09 1.1
+++ xmeter.c 1998/10/30 10:41:51
+@@ -135,6 +135,8 @@
+ #define PORTMAP /* Get right function declarations on Solaris 2 */
+ #include <rpc/rpc.h>
+ #include <rpc/pmap_prot.h>
++#undef FSHIFT /* Use protocol's shift and scale values */
++#undef FSCALE
+ #include <rpcsvc/rstat.h>
+ /*
+ * We need the definitions of CP_USER, CP_NICE and CP_SYS. Some systems
@@ -231,7 +228,7 @@
char *name; /* Name of stat for menu widget */
} STATDATA;