Skip to content

Commit

Permalink
update readme for cpu cgroup demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wusong committed Jan 4, 2022
1 parent f719f96 commit cd86758
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 cd86758

Please sign in to comment.