Optimise ASCII trace.
authorRichard Whitehouse <github@richardwhiuk.com>
Fri, 15 Apr 2011 22:25:06 +0000 (23:25 +0100)
committerRichard Whitehouse <github@richardwhiuk.com>
Fri, 15 Apr 2011 22:25:06 +0000 (23:25 +0100)
src/helper/csma-helper.cc

index 821705d8a2879eeb224a1cb50f06568953a94790..5c37561f8abb0e17f588407077a4041056d6913e 100644 (file)
@@ -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 ("");