You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "J.Andreina (JIRA)" <ji...@apache.org> on 2015/05/12 02:54:59 UTC

[jira] [Commented] (YARN-3617) Fix unused variable to get CPU frequency on Windows systems

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

J.Andreina commented on YARN-3617:
----------------------------------

Thanks [~xafero] for reporting this issue. If you have already started working on this, please reassign to you.

> Fix unused variable to get CPU frequency on Windows systems
> -----------------------------------------------------------
>
>                 Key: YARN-3617
>                 URL: https://issues.apache.org/jira/browse/YARN-3617
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64 SP1
>            Reporter: Georg Berendt
>            Assignee: J.Andreina
>            Priority: Minor
>   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)