blob: ef8d344872ced6c9b14049e0fc80efc2d39acb02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-er,v 1.7 2007/12/27 08:01:20 markd Exp $
--- ksysguard/ksysguardd/NetBSD/ProcessList.c.orig 2005-10-11 04:04:31.000000000 +1300
+++ ksysguard/ksysguardd/NetBSD/ProcessList.c
@@ -24,6 +24,7 @@
#include <ctype.h>
#include <dirent.h>
+#include <errno.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
@@ -191,11 +192,13 @@ updateProcess(int pid)
ps->ppid = p.kp_eproc.e_ppid;
ps->uid = p.kp_eproc.e_ucred.cr_uid;
ps->gid = p.kp_eproc.e_pgid;
+#if __NetBSD_Version__ < 106130000
ps->priority = p.kp_proc.p_priority;
+#endif
ps->niceLevel = p.kp_proc.p_nice;
/* this isn't usertime -- it's total time (??) */
- ps->userTime = p.kp_proc.p_rtime.tv_sec*100+p.kp_proc.p_rtime.tv_usec/100;
+ ps->userTime = 0;
ps->sysTime = 0;
ps->sysLoad = 0;
|