Bug 1943

Summary: Waveform generator signal duration calc error
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: spectrumAssignee: Nicola Baldo <nicola>
Status: RESOLVED FIXED    
Severity: trivial CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

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