shirou_gopsutil/load/load_windows.go

30 lines
520 B
Go
Raw Normal View History

2014-04-18 20:28:00 +08:00
// +build windows
2014-12-30 21:09:05 +08:00
package load
2014-04-18 20:28:00 +08:00
import (
2017-12-31 14:25:49 +08:00
"context"
2015-10-19 23:04:57 +08:00
"github.com/shirou/gopsutil/internal/common"
)
func Avg() (*AvgStat, error) {
2017-12-31 14:25:49 +08:00
return AvgWithContext(context.Background())
}
func AvgWithContext(ctx context.Context) (*AvgStat, error) {
ret := AvgStat{}
2014-04-18 20:28:00 +08:00
2016-04-01 20:34:39 +08:00
return &ret, common.ErrNotImplementedError
2014-04-18 20:28:00 +08:00
}
func Misc() (*MiscStat, error) {
2017-12-31 14:25:49 +08:00
return MiscWithContext(context.Background())
}
func MiscWithContext(ctx context.Context) (*MiscStat, error) {
ret := MiscStat{}
2016-04-01 20:34:39 +08:00
return &ret, common.ErrNotImplementedError
}