traffic-control: Fix incorrect trace source path in example

This commit is contained in:
Tom Henderson
2020-09-12 15:21:12 -07:00
parent ac2dc28ccb
commit d3b54cdd68

View File

@@ -92,9 +92,9 @@ TraceCwnd (std::string cwndTrFileName)
}
static void
SojournTracer (Ptr<OutputStreamWrapper>stream, Time oldval, Time newval)
SojournTracer (Ptr<OutputStreamWrapper>stream, 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<OutputStreamWrapper> 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));
}
}