1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

fix build and path error

This commit is contained in:
Shirou WAKAYAMA 2016-04-01 22:28:07 +09:00
parent bce9212def
commit adf2f03a48
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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 {