diff options
author | Clive Lin <clive@FreeBSD.org> | 2006-03-28 11:50:41 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2006-03-28 11:50:41 +0000 |
commit | 307d96040ad8862fad85aa1b195357e9cbfd67e5 (patch) | |
tree | b47b94c88164942e62141e43aa90c0f8db9ea279 /sysutils/symon | |
parent | 090b0675d0d7e47adc85b53c6e94b8f609512499 (diff) | |
download | ports-307d96040ad8862fad85aa1b195357e9cbfd67e5.tar.gz ports-307d96040ad8862fad85aa1b195357e9cbfd67e5.zip |
Notes
Diffstat (limited to 'sysutils/symon')
-rw-r--r-- | sysutils/symon/Makefile | 2 | ||||
-rw-r--r-- | sysutils/symon/files/patch-platform__FreeBSD__sm_mem.c | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/sysutils/symon/Makefile b/sysutils/symon/Makefile index a45ab3b2d5ba..8ca00ff8350e 100644 --- a/sysutils/symon/Makefile +++ b/sysutils/symon/Makefile @@ -7,7 +7,7 @@ PORTNAME= symon PORTVERSION= 2.72 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= http://www.xs4all.nl/~wpd/symon/philes/ diff --git a/sysutils/symon/files/patch-platform__FreeBSD__sm_mem.c b/sysutils/symon/files/patch-platform__FreeBSD__sm_mem.c new file mode 100644 index 000000000000..8a5730a27683 --- /dev/null +++ b/sysutils/symon/files/patch-platform__FreeBSD__sm_mem.c @@ -0,0 +1,18 @@ +--- platform/FreeBSD/sm_mem.c.orig Mon Mar 27 06:06:18 2006 ++++ platform/FreeBSD/sm_mem.c Mon Mar 27 06:45:54 2006 +@@ -131,12 +131,12 @@ + } + for (i = 0; i < vmnswp_dat; i++) { + struct xswdev vmiswp_dat; +- int vmiswp_siz; ++ int vmiswp_siz = sizeof vmiswp_dat; + me_vmiswp_mib_nam[me_vmiswp_mib_len] = i; + if (sysctl(me_vmiswp_mib_nam, me_vmiswp_mib_len + 1, &vmiswp_dat, (void *)&vmiswp_siz, NULL, 0) < 0) + continue; +- me_stats[3] += (vmiswp_dat.xsw_used * DEV_BSIZE); +- me_stats[4] += (vmiswp_dat.xsw_nblks * DEV_BSIZE); ++ me_stats[3] += pagetob(vmiswp_dat.xsw_used); ++ me_stats[4] += pagetob(vmiswp_dat.xsw_nblks); + } + #endif + |