fix ProcessorSummary.CoreCount
CoreCount was not calculated correctly, it always skipped one processor,
which made result incorrect.
Tested:
Get on /redfish/v1/Systems/system returns correct CoreCount instead of 0
for system with one processor.
"ProcessorSummary": {
"CoreCount": 24,
"Count": 1,
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
}
}
Change-Id: Id227e6c7e99965d614a7756760ef5a41629b34ea
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 8140337..4a05452 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -188,7 +188,7 @@
if (coreCountPtr == nullptr)
{
- coreCount = 0;
+ coreCount = *coreCountVal;
}
else
{