mirror of https://github.com/vbatts/go-cgroup.git
Updated sample in documentation
This commit is contained in:
parent
4c1b10f991
commit
ebdd7269fd
|
@ -16,7 +16,13 @@ on fedora, you'll need packages: golang, libcgroup-devel
|
||||||
Sample
|
Sample
|
||||||
======
|
======
|
||||||
|
|
||||||
|
```
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "github.com/vbatts/go-cgroup"
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
cgroup.Init()
|
cgroup.Init()
|
||||||
|
|
||||||
fmt.Println(cgroup.GetSubSysMountPoint("cpu"))
|
fmt.Println(cgroup.GetSubSysMountPoint("cpu"))
|
||||||
|
@ -30,6 +36,8 @@ Sample
|
||||||
fmt.Println(ctls[i])
|
fmt.Println(ctls[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
|
|
Loading…
Reference in New Issue