File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ var handlers = map[string]statFunc{
6464 Blkio : blkioStat ,
6565}
6666
67- // getAvailableControllers get the available controllers.
68- func getAvailableControllers () ([]string , error ) {
67+ // AvailableControllers get string:bool map of all the available controllers.
68+ func AvailableControllers () ([]string , error ) {
6969 controllers := []string {}
7070 controllersFile := filepath .Join (cgroupRoot , "cgroup.controllers" )
7171
@@ -89,11 +89,6 @@ func getAvailableControllers() ([]string, error) {
8989 return controllers , nil
9090}
9191
92- // AvailableControllers get string:bool map of all the available controllers.
93- func AvailableControllers (exclude map [string ]statFunc ) ([]string , error ) {
94- return getAvailableControllers ()
95- }
96-
9792func getCgroupPathForCurrentProcess () (string , error ) {
9893 path := fmt .Sprintf ("/proc/%d/cgroup" , os .Getpid ())
9994 f , err := os .Open (path )
You can’t perform that action at this time.
0 commit comments