From d72b03165ea6bcdc4737063cd1457af44e377606 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Sat, 9 Nov 2024 20:54:22 +0800 Subject: [PATCH] add network minitor. --- Server/SystemUsage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/SystemUsage.cpp b/Server/SystemUsage.cpp index 0753283..8d38d13 100644 --- a/Server/SystemUsage.cpp +++ b/Server/SystemUsage.cpp @@ -34,7 +34,7 @@ void SystemUsage::start() { publish("yuyun_disk_usage", static_cast(100.0f * diskUsage("/")), "%", "磁盘占用率"); m_lastCpuStats = currentCpuStats; - m_networkStats.push_back(networkStats("eth0")); + m_networkStats.push_back(networkStats("ens18")); while (m_networkStats.size() >= 2) { constexpr auto SpeedInterval = seconds(60 * 15); auto front = m_networkStats.front();