CID-1261669 added comment to clarify false positive

This commit is contained in:
Daan Hoogland 2015-01-05 15:43:51 +01:00
parent 22d6565434
commit 54e5f28ace

View File

@ -4244,6 +4244,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
if (cpuInfo.get("socket_count") != null) {
_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) {
_host.speed = hc.getSpeed(conn).intValue();
break;