1
0
Fork 0
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:
Vincent Batts 2016-11-29 09:24:35 -05:00
parent 489e2f59f2
commit c2855cec9b
2 changed files with 34 additions and 13 deletions

View file

@ -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())
}
}