Commit adf2f03a authored by Shirou WAKAYAMA's avatar Shirou WAKAYAMA

fix build and path error

parent bce9212d
......@@ -16,7 +16,7 @@ func DoSysctrl(mib string) ([]string, error) {
return []string{}, err
}
sysctl, err := exec.LookPath("/usr/bin/getconf")
sysctl, err := exec.LookPath("/usr/sbin/sysctl")
if err != nil {
return []string{}, err
}
......
......@@ -14,7 +14,7 @@ import (
func getVMStat(vms *VirtualMemoryStat) error {
vm_stat, err := exec.LookPath("vm_stat")
if err != nil {
return
return err
}
out, err := exec.Command(vm_stat).Output()
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment