Commit 41ecc455 authored by Michal Privoznik's avatar Michal Privoznik
Browse files

Add VIR_NODE_MEMORY_STATS_AVAILABLE constant mapping

parent 74b73b52
Loading
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -2131,6 +2131,8 @@ type NodeMemoryStats struct {
	Buffers      uint64
	CachedSet    bool
	Cached       uint64
	AvailableSet bool
	Available    uint64
}

// See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetMemoryStats
@@ -2166,6 +2168,9 @@ func (c *Connect) GetMemoryStats(cellNum int, flags uint32) (*NodeMemoryStats, e
		case C.VIR_NODE_MEMORY_STATS_CACHED:
			stats.CachedSet = true
			stats.Cached = uint64(param.value)
		case C.VIR_NODE_MEMORY_STATS_AVAILABLE:
			stats.AvailableSet = true
			stats.Available = uint64(param.value)
		}
	}