You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-dev@incubator.apache.org by "Bertil Chapuis (JIRA)" <ji...@apache.org> on 2010/11/25 22:29:15 UTC

[jira] Updated: (DROIDS-101) GaussianRandomDelayTimer misspell

     [ https://issues.apache.org/jira/browse/DROIDS-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertil Chapuis updated DROIDS-101:
----------------------------------

    Attachment: droids-101.diff

Made the modification and added some javadoc to the delay timer classes.

> GaussianRandomDelayTimer misspell
> ---------------------------------
>
>                 Key: DROIDS-101
>                 URL: https://issues.apache.org/jira/browse/DROIDS-101
>             Project: Droids
>          Issue Type: Bug
>          Components: core
>         Environment: org.apache.droids.api.GaussianRandomDelayTimer
>            Reporter: Alexander Zazhigin
>         Attachments: droids-101.diff
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> Within GaussianRandomDelayTimer wrong type cast line.
> The line below casts first delay variable which is at the range from 0 to 1 to long.
> > return (long) delay * delaySpread + minimumDelay;
> As the result it becomes 0 or 1. This means that only two values produces within the line (delaySpread + minimumDelay) or minimumDelay.
> If you fix the line like below the result will have more sense.
> > return (long) (delay * delaySpread + minimumDelay);

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