diff options
author | christos <christos@pkgsrc.org> | 2002-12-11 21:38:06 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 2002-12-11 21:38:06 +0000 |
commit | b6939eba316e70f22f6ae609a71592a48d5709f4 (patch) | |
tree | 59564425ce9b3469d4c5f799d70dc066538e5b4c /sysutils/xosview | |
parent | 2d18d9a144c46154daf739f81bcede1ce3481830 (diff) | |
download | pkgsrc-b6939eba316e70f22f6ae609a71592a48d5709f4.tar.gz |
put the one line change needed to make this work under /current.
Diffstat (limited to 'sysutils/xosview')
-rw-r--r-- | sysutils/xosview/patches/patch-ad | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/xosview/patches/patch-ad b/sysutils/xosview/patches/patch-ad index b3c1f256b17..871e6302e8c 100644 --- a/sysutils/xosview/patches/patch-ad +++ b/sysutils/xosview/patches/patch-ad @@ -1,7 +1,7 @@ -$NetBSD: patch-ad,v 1.5 2000/08/18 22:43:53 christos Exp $ +$NetBSD: patch-ad,v 1.6 2002/12/11 21:38:06 christos Exp $ --- bsd/kernel.cc.orig Tue Feb 16 09:09:21 1999 -+++ bsd/kernel.cc Fri Aug 18 18:36:14 2000 ++++ bsd/kernel.cc Wed Dec 11 16:34:46 2002 @@ -30,6 +30,10 @@ #include <errno.h> #include <sys/dkstat.h> /* For CPUSTATES, which tells us how @@ -71,3 +71,15 @@ $NetBSD: patch-ad,v 1.5 2000/08/18 22:43:53 christos Exp $ } +@@ -651,7 +681,11 @@ + while (kvmdiskptr != NULL) { + safe_kvm_read ((u_long)kvmdiskptr, &kvmcurrdisk, sizeof(kvmcurrdisk)); + /* Add up the contribution from this disk. */ ++#if defined(__NetBSD_Version__) && __NetBSD_Version__ > 106070000 /* > 1.6G */ ++ *bytesXferred += kvmcurrdisk.dk_rbytes + kvmcurrdisk.dk_wbytes; ++#else + *bytesXferred += kvmcurrdisk.dk_bytes; ++#endif + #ifdef DEBUG + printf ("Got %#x (lower 32bits)\n", (int) (*bytesXferred & 0xffffffff)); + #endif |