YARN-3617. Fix WindowsResourceCalculatorPlugin.getCpuFrequency() returning

always -1. Contributed by J.Andreina.
This commit is contained in:
Devaraj K 2015-06-17 13:54:09 +05:30
parent 5dbc8c9cb0
commit 318d2cde7c
2 changed files with 4 additions and 1 deletions

View File

@ -530,6 +530,9 @@ Release 2.8.0 - UNRELEASED
YARN-3714. AM proxy filter can not get RM webapp address from
yarn.resourcemanager.hostname.rm-id. (Masatake Iwasaki via xgong)
YARN-3617. Fix WindowsResourceCalculatorPlugin.getCpuFrequency()
returning always -1. (J.Andreina via devaraj)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -157,7 +157,7 @@ public class WindowsResourceCalculatorPlugin extends ResourceCalculatorPlugin {
@Override
public long getCpuFrequency() {
refreshIfNeeded();
return -1;
return cpuFrequencyKhz;
}
/** {@inheritDoc} */