Skip to content

Commit

Permalink
update readme for cpu cgroup demo
Browse files Browse the repository at this point in the history
Signed-off-by: Wu Song <wusong@funstory.ai>
  • Loading branch information
wusong committed Feb 24, 2022
1 parent f719f96 commit f39d7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ uses the v1 implementation of cgroups.
```go
shares := uint64(100)
control, err := cgroups.New(cgroups.V1, cgroups.StaticPath("/test"), &specs.LinuxResources{
CPU: &specs.CPU{
CPU: &specs.LinuxCPU{
Shares: &shares,
},
})
Expand Down

0 comments on commit f39d7da

Please sign in to comment.