meminfo: Fix the size mismatch in the swapTotal check mib for BSD. (#1345)
Signed-off-by: David O'Rourke <david.orourke@gmail.com>
This commit is contained in:
parent
f10c665d33
commit
814ef064c0
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ func NewMemoryCollector() (Collector, error) {
|
|||
|
||||
mibSwapTotal := "vm.swap_total"
|
||||
/* swap_total is FreeBSD specific. Fall back to Dfly specific mib if not present. */
|
||||
_, err = unix.SysctlUint32(mibSwapTotal)
|
||||
_, err = unix.SysctlUint64(mibSwapTotal)
|
||||
if err != nil {
|
||||
mibSwapTotal = "vm.swap_size"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue