Bug 1915 - BRITE channel delay is rounded to an integer
BRITE channel delay is rounded to an integer
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: brite
ns-3-dev
All All
: P5 normal
Assigned To: Brian Swenson
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-17 16:43 UTC by Tommaso Pecorella
Modified: 2014-05-19 15:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2014-05-17 16:43:25 UTC
Reported by Chris Hood chood8@gatech.edu

m_britePointToPointHelper.SetChannelAttribute ("Delay",
TimeValue (MilliSeconds ((*it).delay)));

should be:

m_britePointToPointHelper.SetChannelAttribute ("Delay",
TimeValue (Seconds ((*it).delay/1000.0)));

since the delay is a double and can contain fractional values.
Comment 1 Tommaso Pecorella 2014-05-19 15:36:51 UTC
changeset:   10785:e4c5fc7f7f5b