return results;
}
int numberOfCpus = sysInfo.getNumberOfCpus();
for (int i = 0; i < numberOfCpus; i++) {
CpuInformation cpuInfo = sysInfo.getCpu(i);
DiscoveredResourceDetails details = new DiscoveredResourceDetails(discoveryContext.getResourceType(), // resourceType
String.valueOf(i), // resourceKey
"CPU " + i, // resourceName
cpuInfo.getCpuInfo().getModel(), // resourceVersion
cpuInfo.getCpuInfo().getVendor() + ' ' + cpuInfo.getCpuInfo().getModel(), // resourceDescription
null, null);
results.add(details);
}
return results;