sync with top(1) in base; remove KERNBASE. ok okan@
This commit is contained in:
parent
0d7d591395
commit
01d3f160a8
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2012/03/29 13:38:13 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2012/07/10 12:08:29 sthen Exp $
|
||||
|
||||
COMMENT = top for monitoring PostgreSQL processes
|
||||
|
||||
DISTNAME = pg_top-3.6.2
|
||||
CATEGORIES = databases sysutils
|
||||
REVISION = 1
|
||||
REVISION = 2
|
||||
|
||||
HOMEPAGE = http://ptop.projects.postgresql.org/
|
||||
MASTER_SITES = http://pgfoundry.org/frs/download.php/1781/
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-machine_m_openbsd_c,v 1.1 2012/01/08 20:56:03 naddy Exp $
|
||||
--- machine/m_openbsd.c.orig Sat Apr 5 11:09:06 2008
|
||||
+++ machine/m_openbsd.c Sun Jan 8 13:54:54 2012
|
||||
$OpenBSD: patch-machine_m_openbsd_c,v 1.2 2012/07/10 12:08:29 sthen Exp $
|
||||
--- machine/m_openbsd.c.orig Sat Apr 5 18:09:06 2008
|
||||
+++ machine/m_openbsd.c Tue Jul 10 08:26:42 2012
|
||||
@@ -51,13 +51,13 @@
|
||||
#include "loadavg.h"
|
||||
|
||||
@ -111,6 +111,15 @@ $OpenBSD: patch-machine_m_openbsd_c,v 1.1 2012/01/08 20:56:03 naddy Exp $
|
||||
struct handle *hp;
|
||||
int cputime;
|
||||
double pct;
|
||||
@@ -477,7 +477,7 @@ format_next_process(caddr_t handle, char *(*get_userid
|
||||
p_wait = pp->p_wmesg;
|
||||
else {
|
||||
snprintf(waddr, sizeof(waddr), "%llx",
|
||||
- (unsigned long long)(pp->p_wchan & ~KERNBASE));
|
||||
+ (unsigned long long)pp->p_wchan);
|
||||
p_wait = waddr;
|
||||
}
|
||||
} else
|
||||
@@ -541,13 +541,13 @@ compare_cpu(const void *v1, const void *v2)
|
||||
{
|
||||
struct proc **pp1 = (struct proc **) v1;
|
||||
|
Loading…
Reference in New Issue
Block a user