mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
instrumentation: Use null when CPU load is unknown
This commit is contained in:
@@ -416,7 +416,8 @@ void cmInstrumentation::InsertDynamicSystemInformation(
|
||||
}
|
||||
root["dynamicSystemInformation"][cmStrCat(prefix, "HostMemoryUsed")] =
|
||||
memory;
|
||||
root["dynamicSystemInformation"][cmStrCat(prefix, "CPULoadAverage")] = load;
|
||||
root["dynamicSystemInformation"][cmStrCat(prefix, "CPULoadAverage")] =
|
||||
load > 0 ? Json::Value(load) : Json::nullValue;
|
||||
}
|
||||
|
||||
void cmInstrumentation::GetDynamicSystemInformation(double& memory,
|
||||
|
||||
Reference in New Issue
Block a user