Merge pull request #1423 from chenchun/memory_reservation

GetSpec missing memory reservation
This commit is contained in:
Tim St. Clair 2016-08-16 17:37:08 -07:00 committed by GitHub
commit 2ed7198f77

View File

@ -110,6 +110,7 @@ func GetSpec(cgroupPaths map[string]string, machineInfoFactory info.MachineInfoF
spec.HasMemory = true
spec.Memory.Limit = readUInt64(memoryRoot, "memory.limit_in_bytes")
spec.Memory.SwapLimit = readUInt64(memoryRoot, "memory.memsw.limit_in_bytes")
spec.Memory.Reservation = readUInt64(memoryRoot, "memory.soft_limit_in_bytes")
}
}