处理告警

Signed-off-by: wanglu <1154871698@qq.com>
This commit is contained in:
wanglu 2024-01-02 21:10:27 +08:00
parent e707c1cb25
commit a602bb1131

View File

@ -57,6 +57,9 @@ std::map<std::string, std::string> Network::GetNetworkInfo()
}
}
fclose(fp);
if (allTx == 0 && allRx == 0) {
return networkInfo;
}
if (prevTx != 0) {
diffTx = allTx - prevTx;
}