[ 
https://issues.apache.org/jira/browse/YARN-3618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538855#comment-14538855
 ] 

Georg Berendt commented on YARN-3618:
-------------------------------------

Sorry, by posting the dialogue must have sent two POSTs

> Fix unused variable to get CPU frequency on Windows systems
> -----------------------------------------------------------
>
>                 Key: YARN-3618
>                 URL: https://issues.apache.org/jira/browse/YARN-3618
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64 SP1
>            Reporter: Georg Berendt
>            Priority: Minor
>              Labels: easyfix
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In the class 'WindowsResourceCalculatorPlugin.java' of the YARN project, 
> there is an unused variable for CPU frequency.
> " /** {@inheritDoc} */
>   @Override
>   public long getCpuFrequency() {
>     refreshIfNeeded();
>     return -1;       
>   }"
> Please change '-1' to use 'cpuFrequencyKhz'.
> org/apache/hadoop/yarn/util/WindowsResourceCalculatorPlugin.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to