YARN-3617. Fix WindowsResourceCalculatorPlugin.getCpuFrequency() returning

always -1. Contributed by J.Andreina.

(cherry picked from commit 318d2cde7c)
This commit is contained in:
Devaraj K 2015-06-17 13:54:09 +05:30
parent acc90ca175
commit 2802c63ac3
2 changed files with 4 additions and 1 deletions

View File

@ -482,6 +482,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} */