mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CID-1261669 added comment to clarify false positive
This commit is contained in:
parent
22d6565434
commit
54e5f28ace
@ -4244,6 +4244,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||||||
if (cpuInfo.get("socket_count") != null) {
|
if (cpuInfo.get("socket_count") != null) {
|
||||||
_host.cpuSockets = Integer.parseInt(cpuInfo.get("socket_count"));
|
_host.cpuSockets = Integer.parseInt(cpuInfo.get("socket_count"));
|
||||||
}
|
}
|
||||||
|
// would hcs be null we would have thrown an exception on condition (_host.cpus <= 0) by now
|
||||||
for (final HostCpu hc : hcs) {
|
for (final HostCpu hc : hcs) {
|
||||||
_host.speed = hc.getSpeed(conn).intValue();
|
_host.speed = hc.getSpeed(conn).intValue();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user