add network minitor.
Some checks failed
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 18s
Deploy / Build (push) Failing after 5m37s

This commit is contained in:
amass 2024-11-09 20:54:22 +08:00
parent 36f956b590
commit d72b03165e

View File

@ -34,7 +34,7 @@ void SystemUsage::start() {
publish("yuyun_disk_usage", static_cast<int>(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();