perf(monitors): 复用网络接口元数据并一致读取路径状态

This commit is contained in:
2026-11-16 00:06:03 +08:00
parent 4b8deb2e48
commit 97c1bc3b7f
5 changed files with 45 additions and 24 deletions
+1 -2
View File
@@ -102,8 +102,7 @@ actor SystemSampler {
result.fans = fanCache
result.memory = MemoryMonitor.sample()
result.network = network.sample()
result.networkPath = networkPath.snapshot()
result.defaultNetworkInterface = networkPath.defaultInterface()
(result.networkPath, result.defaultNetworkInterface) = networkPath.snapshot()
result.disk = DiskMonitor.sample()
result.diskIO = diskIO.sample()
result.battery = batteryMonitor.sample()