This commit is contained in:
npc0-hue
2026-08-26 09:56:43 +08:00
parent 2b4974b561
commit 8e02a316fa
93 changed files with 21749 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
//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)
}