Merge branch 'master' of github.com:shirou/gopsutil
This commit is contained in:
commit
e1af70f663
|
@ -6,8 +6,6 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/shirou/go-ps"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -30,7 +28,7 @@ func HostInfo() (HostInfoStat, error) {
|
||||||
|
|
||||||
ret.Uptime = int64(uptimemsec) / 1000
|
ret.Uptime = int64(uptimemsec) / 1000
|
||||||
|
|
||||||
procs, err := ps.Processes()
|
procs, err := Pids()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue