Move FreeBSD/DragonflyBSD out of meminfo add kvm. (#547)

* Move FreeBSD/DragonflyBSD out of meminfo add kvm.

This gives us SwapUsed, and everything under one roof.

* Fix typos per review.

* Update to use newer API.

* Remove premature optimization per PR feedback.
This commit is contained in:
Derek Marcotte 2018-01-04 06:23:26 -05:00 committed by Ben Kochie
commit 477fe4665a
6 changed files with 272 additions and 59 deletions

View file

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin dragonfly freebsd linux openbsd
// +build darwin linux openbsd
// +build !nomeminfo
package collector