memory_bsd: Fix a problem fetching the user wire count on FreeBSD

Signed-off-by: David O'Rourke <david.orourke@gmail.com>
This commit is contained in:
David O'Rourke 2023-01-26 02:53:56 +00:00
parent 6a0598e563
commit 9232df7237
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ func NewMemoryCollector(logger log.Logger) (Collector, error) {
description: "Locked in memory by user, mlock, etc", description: "Locked in memory by user, mlock, etc",
mib: "vm.stats.vm.v_user_wire_count", mib: "vm.stats.vm.v_user_wire_count",
conversion: fromPage, conversion: fromPage,
dataType: bsdSysctlTypeCLong,
}, },
{ {
name: "cache_bytes", name: "cache_bytes",