From: Richard Whitehouse Date: Fri, 15 Apr 2011 22:25:06 +0000 (+0100) Subject: Optimise ASCII trace. X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=52021fea3101238efae8e187909e8759dc9dc5f5;p=ns-moose.git Optimise ASCII trace. --- 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 ("");