summaryrefslogtreecommitdiff
path: root/sysutils/libgtop/patches/patch-ag
blob: 6744e0365e0fb1d6e9fb213f60f4bcf76bdeb26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ag,v 1.3 2004/04/02 12:13:57 jmmv Exp $

--- sysdeps/freebsd/procuid.c.orig	Mon Nov 26 23:37:59 2001
+++ sysdeps/freebsd/procuid.c	Sun Jan 19 23:26:08 2003
@@ -94,7 +94,11 @@
 	buf->tpgid = pinfo [0].kp_eproc.e_tpgid;
 
 	buf->nice     = pinfo [0].kp_proc.p_nice;
+#if defined(__NetBSD__) && defined(SACTIVE)
+	buf->priority = 0;
+#else
 	buf->priority = pinfo [0].kp_proc.p_priority;
+#endif
 
 	/* Set the flags for the data we're about to return*/
 	buf->flags = _glibtop_sysdeps_proc_uid;