Uploaded image for project: 'Droids'
  1. Droids
  2. DROIDS-101

GaussianRandomDelayTimer misspell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • org.apache.droids.api.GaussianRandomDelayTimer

    Description

      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);

      Attachments

        1. droids-101.diff
          5 kB
          Bertil Chapuis

        Activity

          People

            Unassigned Unassigned
            zazhigin Alexander Zazhigin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified