wmmemload: Use sysctl for swap usage information in FreeBSD.
commitf094d448e29373dd307913c28bd269646bd63966
authorDoug Torrance <dtorrance@monmouthcollege.edu>
Tue, 7 Apr 2015 06:23:26 +0000 (7 01:23 -0500)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 7 Apr 2015 07:52:22 +0000 (7 08:52 +0100)
tree73391c90513347c991ab1595e53b085b61c32f5e
parent38c74350b02f35824554ce0c4f0f251d71762040
wmmemload: Use sysctl for swap usage information in FreeBSD.

Use sysctl instead of kvm_getswapinfo() to read the swap usage information
in FreeBSD.  This removes the need for a dependency on libkvm and for a
setgid binary.

Based on the Debian patch [1].

[1] https://sources.debian.net/src/wmmemload/0.1.7-2/debian/patches/sysctl_swap.patch/
wmmemload/configure.ac
wmmemload/src/mem_freebsd.c