Loading connect.go +13 −8 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) } } Loading Loading
connect.go +13 −8 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) } } Loading