Bug 1943 - Waveform generator signal duration calc error
Waveform generator signal duration calc error
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: spectrum
ns-3-dev
All All
: P5 trivial
Assigned To: Nicola Baldo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-04 14:20 UTC by Tommaso Pecorella
Modified: 2014-07-04 14:24 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-07-04 14:20:33 UTC
Sascha Alexander Jopen <jopen@informatik.uni-bonn.de> found this.

txParams->duration = Time (m_period * m_dutyCycle);

where m_period is Time and m_dutyCycle is double. Conversion to int -> zero (or m_period iff m_dutyCycle is exactly one).

The line above should be:
txParams->duration = Time (m_period.GetTimeStep () * m_dutyCycle);
Comment 1 Tommaso Pecorella 2014-07-04 14:24:52 UTC
changeset:   10840:d19c32382a4b