Merge pull request #479 from rjnagal/cpu

Fix typo in netlink example.
This commit is contained in:
Victor Marmol 2015-01-30 09:03:51 -08:00
commit dd4735addd

View File

@ -31,7 +31,7 @@ func main() {
paths := []string{"/sys/fs/cgroup/cpu", "/sys/fs/cgroup/cpu/docker"}
names := []string{"/", "/docker"}
for i, path := range paths {
stats, err := n.GetCpuLoad(path, names[i])
stats, err := n.GetCpuLoad(names[i], path)
if err != nil {
log.Printf("Error getting cpu load for %q: %s", path, err)
}