fix: make resource metrics platform aware

This commit is contained in:
ji ruo committed 2026-10-30 01:39:39 +08:00
1 parent 08cf862b0c
commit bf2ef120da
7 files changed
+124 -120

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
//go:build !linux
package server
import "time"
func systemMetricsSnapshot(_ *Server) systemMetricsResponse {
return systemMetricsResponse{Scope: "unsupported", Supported: false, Timestamp: time.Now().UTC()}
}