instrumentation: Run system checks for static system info

This JSON object contains processor- and memory-related data, so we
must always ensure those checks are run first.

Fixes: #27537
This commit is contained in:
Tyler Yankee committed 2026-01-28 12:53:54 -05:00
1 parent 810e5d3a7a
commit 7867a36fdc
1 file changed
+5
+5
View File
@@ -465,6 +465,11 @@ void cmInstrumentation::InsertStaticSystemInformation(Json::Value& root)
info.RunOSCheck();
this->ranOSCheck = true;
}
if (!this->ranSystemChecks) {
info.RunCPUCheck();
info.RunMemoryCheck();
this->ranSystemChecks = true;
}
Json::Value infoRoot;
infoRoot["familyId"] = info.GetFamilyID();
infoRoot["hostname"] = info.GetHostname();