Bug 2940

Summary: convert ns3::QueueDisc::SojournTime trace source to TracedCallback
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: traffic-controlAssignee: Stefano Avallone <stavallo>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P3    
Version: ns-3.28   
Hardware: All   
OS: All   
Attachments: patch to fix

Description Tom Henderson 2018-07-03 19:54:51 UTC
The current trace source for sojourn time is a traced value, which only reports changes to the sojourn time (i.e. it suppresses writing a trace if the new sojourn time is the same as the old).  It therefore misses dequeue events.  The fix is to convert it from a TracedValue to a TracedCallback.
Comment 1 Tom Henderson 2018-07-03 20:00:42 UTC
Created attachment 3121 [details]
patch to fix
Comment 2 Stefano Avallone 2018-07-04 03:56:47 UTC
Agreed. Feel free to push, thanks.
Comment 3 Tom Henderson 2018-07-14 10:58:30 UTC
fixed in 13688:adf4f2b2462d