Fix typo in netlink example.

This commit is contained in:
Rohit Jnagal 2015-01-30 16:56:34 +00:00
parent 62b02a6b94
commit 0b7e41c991

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