perf(monitors): 复用网络接口元数据并一致读取路径状态
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user