summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Grobelny <krzysztof.grobelny@intel.com>2022-08-10 11:11:11 +0300
committerEd Tanous <ed@tanous.net>2022-08-13 02:04:54 +0300
commita6669023cd409db1cf784f51f1b1008798c27e5c (patch)
tree53b05af198b4aa3747f6bc72b987523d8c01ee60
parentfac6e53bf1d5d3099db6890f8935f4f053fbb4d7 (diff)
downloadbmcweb-a6669023cd409db1cf784f51f1b1008798c27e5c.tar.xz
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>
-rw-r--r--redfish-core/lib/systems.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 8140337093..4a05452e55 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -188,7 +188,7 @@ inline void
if (coreCountPtr == nullptr)
{
- coreCount = 0;
+ coreCount = *coreCountVal;
}
else
{