From d3b54cdd68461f9f50adeec0c1064a4048b67c09 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sat, 12 Sep 2020 15:21:12 -0700 Subject: [PATCH] traffic-control: Fix incorrect trace source path in example --- src/traffic-control/examples/codel-vs-pfifo-asymmetric.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/traffic-control/examples/codel-vs-pfifo-asymmetric.cc b/src/traffic-control/examples/codel-vs-pfifo-asymmetric.cc index 82c4c9b5e..d9df4b404 100644 --- a/src/traffic-control/examples/codel-vs-pfifo-asymmetric.cc +++ b/src/traffic-control/examples/codel-vs-pfifo-asymmetric.cc @@ -92,9 +92,9 @@ TraceCwnd (std::string cwndTrFileName) } static void -SojournTracer (Ptrstream, Time oldval, Time newval) +SojournTracer (Ptrstream, Time newval) { - *stream->GetStream () << oldval << " " << newval << std::endl; + *stream->GetStream () << newval << std::endl; } static void @@ -109,7 +109,7 @@ TraceSojourn (std::string sojournTrFileName) else { Ptr stream = ascii.CreateFileStream (sojournTrFileName.c_str ()); - Config::ConnectWithoutContext ("/NodeList/2/$ns3::TrafficControlLayer/RootQueueDiscList/0/$ns3::CoDelQueueDisc/Sojourn", MakeBoundCallback (&SojournTracer, stream)); + Config::ConnectWithoutContext ("/NodeList/2/$ns3::TrafficControlLayer/RootQueueDiscList/0/$ns3::CoDelQueueDisc/SojournTime", MakeBoundCallback (&SojournTracer, stream)); } }