shirou_gopsutil/cpu/cpu_fallback.go

26 lines
594 B
Go
Raw Normal View History

// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
package cpu
import (
2017-12-31 14:25:49 +08:00
"context"
"github.com/marcospedreiro/gopsutil/internal/common"
)
func Times(percpu bool) ([]TimesStat, error) {
2017-12-31 14:25:49 +08:00
return TimesWithContext(context.Background(), percpu)
}
func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, error) {
return []TimesStat{}, common.ErrNotImplementedError
}
func Info() ([]InfoStat, error) {
2017-12-31 14:25:49 +08:00
return InfoWithContext(context.Background())
}
func InfoWithContext(ctx context.Context) ([]InfoStat, error) {
return []InfoStat{}, common.ErrNotImplementedError
}