Files
flatrender/services/node-agent/internal/metrics/metrics_other.go
T

16 lines
490 B
Go
Raw Normal View History

//go:build !windows
// Non-Windows stub so the agent compiles in Linux CI / dev. Render nodes are
// Windows-only (After Effects), so real metrics live in metrics_windows.go.
package metrics
import (
"runtime"
"time"
)
func CPUPercent(interval time.Duration) int { time.Sleep(0); return 0 }
func Memory() (totalMB, availMB int) { return 0, 0 }
func Disk(path string) (usedPct, totalGB int) { return 0, 0 }
func Cores() int { return runtime.NumCPU() }