< prev index next >
src/jdk.management/unix/classes/com/sun/management/internal/OperatingSystemImpl.java
Print this page
@ rev 57446 : Review changes
|
~
@@ -168,11 +168,11 @@
public double getProcessCpuLoad() {
return getProcessCpuLoad0();
}
private boolean isCpuSetSameAsHostCpuSet() {
- if (containerMetrics != null) {
+ if (containerMetrics != null && containerMetrics.getCpuSetCpus() != null) {
return containerMetrics.getCpuSetCpus().length == getHostConfiguredCpuCount0();
}
return false;
}
< prev index next >