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
|
|
|
|
2014-11-27 09:18:15 +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"
|
2014-11-27 09:18:15 +08:00
|
|
|
)
|
|
|
|
|
2016-03-22 22:09:12 +08:00
|
|
|
func Avg() (*AvgStat, error) {
|
2017-12-31 14:25:49 +08:00
|
|
|
return AvgWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func AvgWithContext(ctx context.Context) (*AvgStat, error) {
|
2016-03-22 22:09:12 +08:00
|
|
|
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
|
|
|
}
|
2016-02-20 21:52:16 +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) {
|
2016-02-20 21:52:16 +08:00
|
|
|
ret := MiscStat{}
|
|
|
|
|
2016-04-01 20:34:39 +08:00
|
|
|
return &ret, common.ErrNotImplementedError
|
2016-02-20 21:52:16 +08:00
|
|
|
}
|