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

fix build failure and panic on Windows.

This commit is contained in:
WAKAYAMA Shirou 2014-05-16 16:59:46 +09:00
parent 0f0c4c99c1
commit 1ed1140089
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import (
)
var (
modiphlpapi = NewLazyDLL("iphlpapi.dll")
modiphlpapi = syscall.NewLazyDLL("iphlpapi.dll")
procGetExtendedTcpTable = modiphlpapi.NewProc("GetExtendedTcpTable")
procGetExtendedUdpTable = modiphlpapi.NewProc("GetExtendedUdpTable")
)
@ -72,7 +72,7 @@ func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
func NetConnections(kind string) ([]NetConnectionStat, error) {
var ret []NetConnectionStat
return ret, erros.New("not implemented yet")
return ret, errors.New("not implemented yet")
}
// borrowed from src/pkg/net/interface_windows.go

View File

@ -164,7 +164,8 @@ func (p *Process) IsRunning() (bool, error) {
}
func (p *Process) MemoryMaps(grouped bool) (*[]MemoryMapsStat, error) {
return nil, errors.New("not implemented yet")
ret := make([]MemoryMapsStat, 0)
return &ret, errors.New("not implemented yet")
}
func NewProcess(pid int32) (*Process, error) {