Merge pull request #28375 from taosdata/fix/TS-5533-update-os-info-when-monitor

fix/TS-5533-update-os-info-when-monitor
This commit is contained in:
Hongze Cheng 2024-10-16 16:55:42 +08:00 committed by GitHub
commit f9d26c7df3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ void dmGetMonitorSystemInfo(SMonSysInfo *pInfo) {
}
pInfo->mem_total = tsTotalMemoryKB;
pInfo->disk_engine = 0;
code = osUpdate();
if (code != 0) {
dError("failed to update os info since %s", tstrerror(code));
}
pInfo->disk_used = tsDataSpace.size.used;
pInfo->disk_total = tsDataSpace.size.total;
code = taosGetCardInfoDelta(&pInfo->net_in, &pInfo->net_out);