Files
kandev/apps/backend/internal/system/metrics/collector_other.go
T
2026-06-15 18:54:16 +01:00

22 lines
582 B
Go

//go:build !linux && !darwin && !windows
package metrics
import "errors"
func readCPUTimes(_ *Collector) (cpuTimes, error) {
return cpuTimes{}, errors.New("cpu metrics unavailable on this platform")
}
func (c *Collector) memoryPercent() (float64, error) {
return 0, errors.New("memory metrics unavailable on this platform")
}
func (c *Collector) cpuTempValue() (float64, error) {
return 0, errors.New("cpu temperature unavailable on this platform")
}
func (c *Collector) ioLoadValue() (float64, error) {
return 0, errors.New("load average unavailable on this platform")
}