Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
agent: get current cpuset from /sys/devices/system/cpu/online
Browse files Browse the repository at this point in the history
Fixes: #693

Signed-off-by: choury <[email protected]>
  • Loading branch information
choury committed Nov 21, 2019
1 parent c87f497 commit 5b64d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

// set function in variable to overwrite for testing.
var getCpusetGuest = func() (string, error) {
cpusetGuestByte, err := ioutil.ReadFile("/sys/fs/cgroup/cpuset/cpuset.cpus")
cpusetGuestByte, err := ioutil.ReadFile("/sys/devices/system/cpu/online")
if err != nil {
return "", err
}
Expand Down

0 comments on commit 5b64d42

Please sign in to comment.