mirror of
https://github.com/vbatts/go-cgroup.git
synced 2025-10-04 13:21:00 +00:00
controller_data ought to be read-only
This commit is contained in:
parent
489e2f59f2
commit
c2855cec9b
2 changed files with 34 additions and 13 deletions
5
main.go
5
main.go
|
@ -4,8 +4,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"."
|
||||
"fmt"
|
||||
|
||||
"github.com/vbatts/go-cgroup"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -25,6 +26,6 @@ func main() {
|
|||
return
|
||||
}
|
||||
for i := range ctls {
|
||||
fmt.Printf("Hierarchy=%d Enabled=%d NumCgroups=%d Name=%s\n", ctls[i].Hierarchy, ctls[i].Enabled, ctls[i].NumCgroups, ctls[i].Name)
|
||||
fmt.Printf("Hierarchy=%d Enabled=%d NumCgroups=%d Name=%s\n", ctls[i].Hierarchy(), ctls[i].Enabled(), ctls[i].NumCgroups(), ctls[i].Name())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue