Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

NetBSD/current needs sysctl/vmmeter.h explicitly included.

  • Loading branch information...
commit 208d8b33cebc89ddd1952fcd3fdb471d1f291186 1 parent 659f54f
joerg authored
4 net/xymonclient/distinfo
... ... @@ -1,4 +1,4 @@
1   -$NetBSD: distinfo,v 1.10 2012/10/11 18:42:19 spz Exp $
  1 +$NetBSD: distinfo,v 1.11 2013/01/11 00:05:05 joerg Exp $
2 2
3 3 SHA1 (xymon-4.3.10.tar.gz) = d37765da5741adc4282e081e3ad59862eb22353f
4 4 RMD160 (xymon-4.3.10.tar.gz) = df5e01ab4528bc1146cdf784bbf69616f743bfa1
@@ -8,7 +8,7 @@ SHA1 (patch-ab) = ec71a05ac528675dbd406be0ea43729b2df1e106
8 8 SHA1 (patch-ac) = da7489b57fdbfc0937bcddeabb7cc57ef91e8431
9 9 SHA1 (patch-ad) = 7519eaeecab9f5d4b6956e0fd426548ec7990a0b
10 10 SHA1 (patch-ae) = 218ef05eb3d51d779230c357d731b2f904d4559f
11   -SHA1 (patch-af) = d4929c2acc2136e281564b403e9f75cfcd4d87f3
  11 +SHA1 (patch-af) = 5e71a56cf827f9b30147dd577c295f10c150cd27
12 12 SHA1 (patch-build_Makefile.FreeBSD) = e58b50f35068cba6fed89cc21bcc4eb7d30efd23
13 13 SHA1 (patch-client_xymonclient-netbsd.sh) = 10d77fd722ecaaed7170b2ae6d51e6429a96d686
14 14 SHA1 (patch-configure) = 7b71ed7a567124a2aa36d9bf9188209649e88a4d
24 net/xymonclient/patches/patch-af
... ... @@ -1,10 +1,19 @@
1   -$NetBSD: patch-af,v 1.2 2012/10/11 18:42:20 spz Exp $
  1 +$NetBSD: patch-af,v 1.3 2013/01/11 00:05:05 joerg Exp $
2 2
3 3 use the correct type for physmem
4 4
5   ---- client/netbsd-meminfo.c.orig 2009-02-12 13:09:34.000000000 +0000
  5 +--- client/netbsd-meminfo.c.orig 2011-07-31 21:01:52.000000000 +0000
6 6 +++ client/netbsd-meminfo.c
7   -@@ -22,7 +22,7 @@ static char rcsid[] = "$Id: netbsd-memin
  7 +@@ -15,14 +15,16 @@ static char rcsid[] = "$Id: netbsd-memin
  8 + #include <sys/types.h>
  9 + #include <sys/sysctl.h>
  10 + #include <sys/swap.h>
  11 ++#include <sys/vmmeter.h>
  12 + #include <unistd.h>
  13 ++#include <stdint.h>
  14 + #include <stdlib.h>
  15 + #include <stdio.h>
  16 +
8 17 int main(int argc, char *argv[])
9 18 {
10 19 int hw_physmem[] = { CTL_HW, HW_PHYSMEM64 };
@@ -13,3 +22,12 @@ use the correct type for physmem
13 22
14 23 int hw_pagesize[] = { CTL_HW, HW_PAGESIZE };
15 24 int pagesize;
  25 +@@ -64,7 +66,7 @@ int main(int argc, char *argv[])
  26 + swapused /= (2*1024);
  27 +
  28 + // printf("Pagesize:%d\n", pagesize);
  29 +- printf("Total:%d\n", (physmem / (1024 * 1024)));
  30 ++ printf("Total:%" PRId64"\n", (physmem / (1024 * 1024)));
  31 + printf("Free:%d\n", (pagesize / 1024)*(vmdata.t_free / 1024));
  32 + printf("Swaptotal:%lu\n", swaptotal);
  33 + printf("Swapused:%lu\n", swapused);

0 comments on commit 208d8b3

Please sign in to comment.
Something went wrong with that request. Please try again.