fix/TS-5533-update-os-info-when-monitor

This commit is contained in:
dmchen 2024-10-16 02:16:31 +00:00
parent 28ca8ad591
commit d0a0d578bd
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ void dmGetMonitorSystemInfo(SMonSysInfo *pInfo) {
} }
pInfo->mem_total = tsTotalMemoryKB; pInfo->mem_total = tsTotalMemoryKB;
pInfo->disk_engine = 0; pInfo->disk_engine = 0;
osUpdate();
pInfo->disk_used = tsDataSpace.size.used; pInfo->disk_used = tsDataSpace.size.used;
pInfo->disk_total = tsDataSpace.size.total; pInfo->disk_total = tsDataSpace.size.total;
code = taosGetCardInfoDelta(&pInfo->net_in, &pInfo->net_out); code = taosGetCardInfoDelta(&pInfo->net_in, &pInfo->net_out);