incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HAMA-308) Pi bug
Date Thu, 14 Oct 2010 04:00:33 GMT

    [ https://issues.apache.org/jira/browse/HAMA-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920843#action_12920843
] 

Edward J. Yoon commented on HAMA-308:
-------------------------------------

oh, even if the number of tasks is greater than 1, it should not attempt to calculate the
avg. :/

Local test passed. I'm resolving this issue now.

> Pi bug
> ------
>
>                 Key: HAMA-308
>                 URL: https://issues.apache.org/jira/browse/HAMA-308
>             Project: Hama
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 0.2.0
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>            Priority: Trivial
>             Fix For: 0.2.0
>
>         Attachments: hama-308.patch
>
>
> When the number of task is one, there is no reason to calculate the average.
> {code}
> pi = (pi + Bytes.toDouble(received.getData())) / 2;
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message