18 lines
359 B
Go
18 lines
359 B
Go
//go:build !linux && !windows
|
|
|
|
package runtime
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
func hostCPUPercent(context.Context) (float64, error) {
|
|
return 0, fmt.Errorf("CPU utilization is not implemented for %s", runtime.GOOS)
|
|
}
|
|
|
|
func hostMemoryPercent() (float64, error) {
|
|
return 0, fmt.Errorf("memory utilization is not implemented for %s", runtime.GOOS)
|
|
}
|