From 52021fea3101238efae8e187909e8759dc9dc5f5 Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 15 Apr 2011 23:25:06 +0100 Subject: [PATCH] Optimise ASCII trace. --- src/helper/csma-helper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/csma-helper.cc b/src/helper/csma-helper.cc index 821705d..5c37561 100644 --- a/src/helper/csma-helper.cc +++ b/src/helper/csma-helper.cc @@ -195,7 +195,7 @@ CsmaHelper::EnableAsciiInternal ( uint32_t deviceid = nd->GetIfIndex (); std::ostringstream oss; - oss << "/NodeList/" << nd->GetNode ()->GetId () << "/DeviceList/" << deviceid << "/$ns3::CsmaNetDevice/MacRx"; + oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::CsmaNetDevice/MacRx"; Config::Connect (oss.str (), MakeBoundCallback (&AsciiTraceHelper::DefaultReceiveSinkWithContext, stream)); oss.str (""); -- 2.34.1