mirror of
https://github.com/henrygd/beszel.git
synced 2026-10-02 22:37:47 +02:00
fix(agent): report container-local CPU usage via cgroup cpu accounting
This commit is contained in:
9
agent/cpu_unsupported.go
Normal file
9
agent/cpu_unsupported.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !linux
|
||||
|
||||
package agent
|
||||
|
||||
// containerCpuMetrics is Linux-only (cgroup accounting). Other platforms keep
|
||||
// the gopsutil /proc path.
|
||||
func containerCpuMetrics(uint16) (CpuMetrics, bool) {
|
||||
return CpuMetrics{}, false
|
||||
}
|
||||
Reference in New Issue
Block a user