mirror of
https://github.com/status-im/status-go.git
synced 2025-01-16 17:57:09 +00:00
2f539d3bd2
Go ens needs to be updated to be compatible with the lastest geth version
31 lines
714 B
Go
31 lines
714 B
Go
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows,!dragonfly
|
|
|
|
package cpu
|
|
|
|
import (
|
|
"context"
|
|
"runtime"
|
|
|
|
"github.com/shirou/gopsutil/internal/common"
|
|
)
|
|
|
|
func Times(percpu bool) ([]TimesStat, error) {
|
|
return TimesWithContext(context.Background(), percpu)
|
|
}
|
|
|
|
func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, error) {
|
|
return []TimesStat{}, common.ErrNotImplementedError
|
|
}
|
|
|
|
func Info() ([]InfoStat, error) {
|
|
return InfoWithContext(context.Background())
|
|
}
|
|
|
|
func InfoWithContext(ctx context.Context) ([]InfoStat, error) {
|
|
return []InfoStat{}, common.ErrNotImplementedError
|
|
}
|
|
|
|
func CountsWithContext(ctx context.Context, logical bool) (int, error) {
|
|
return runtime.NumCPU(), nil
|
|
}
|