Skip to content

Commit

Permalink
Merge branch 'pr-1573'
Browse files Browse the repository at this point in the history
  Fix systemd cgroup after memory type changed

LGTMs: @crosbymichael @cyphar
Closes #1573
  • Loading branch information
cyphar committed Aug 25, 2017
2 parents 4e33fae + acaf689 commit 4d6e672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/cgroups/systemd/apply_systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (m *Manager) Apply(pid int) error {

if c.Resources.Memory != 0 {
properties = append(properties,
newProp("MemoryLimit", c.Resources.Memory))
newProp("MemoryLimit", uint64(c.Resources.Memory)))
}

if c.Resources.CpuShares != 0 {
Expand Down

0 comments on commit 4d6e672

Please sign in to comment.