Skip to content

Commit f39d7da

Browse files
author
wusong
committed
update readme for cpu cgroup demo
Signed-off-by: Wu Song <[email protected]>
1 parent f719f96 commit f39d7da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ uses the v1 implementation of cgroups.
2626
```go
2727
shares := uint64(100)
2828
control, err := cgroups.New(cgroups.V1, cgroups.StaticPath("/test"), &specs.LinuxResources{
29-
CPU: &specs.CPU{
29+
CPU: &specs.LinuxCPU{
3030
Shares: &shares,
3131
},
3232
})

0 commit comments

Comments
 (0)