From 446655a4b441e23b7c27bb33f963ea8e6573defe Mon Sep 17 00:00:00 2001 From: Kim Ferrari Date: Fri, 27 Mar 2020 13:43:49 -0700 Subject: [PATCH] flow-monitor: Update NS_LOG print format for ns3::Time --- src/flow-monitor/model/flow-monitor.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/flow-monitor/model/flow-monitor.cc b/src/flow-monitor/model/flow-monitor.cc index 14bd5787d..c3d532760 100644 --- a/src/flow-monitor/model/flow-monitor.cc +++ b/src/flow-monitor/model/flow-monitor.cc @@ -302,7 +302,7 @@ FlowMonitor::GetFlowStats () const void FlowMonitor::CheckForLostPackets (Time maxDelay) { - NS_LOG_FUNCTION (this << maxDelay.GetSeconds ()); + NS_LOG_FUNCTION (this << maxDelay.As (Time::S)); Time now = Simulator::Now (); for (TrackedPacketMap::iterator iter = m_trackedPackets.begin (); @@ -362,23 +362,23 @@ FlowMonitor::GetAllProbes () const void FlowMonitor::Start (const Time &time) { - NS_LOG_FUNCTION (this << time.GetSeconds ()); + NS_LOG_FUNCTION (this << time.As (Time::S)); if (m_enabled) { NS_LOG_DEBUG ("FlowMonitor already enabled; returning"); return; } Simulator::Cancel (m_startEvent); - NS_LOG_DEBUG ("Scheduling start at " << time.GetSeconds ()); + NS_LOG_DEBUG ("Scheduling start at " << time.As (Time::S)); m_startEvent = Simulator::Schedule (time, &FlowMonitor::StartRightNow, this); } void FlowMonitor::Stop (const Time &time) { - NS_LOG_FUNCTION (this << time.GetSeconds ()); + NS_LOG_FUNCTION (this << time.As (Time::S)); Simulator::Cancel (m_stopEvent); - NS_LOG_DEBUG ("Scheduling stop at " << time.GetSeconds ()); + NS_LOG_DEBUG ("Scheduling stop at " << time.As (Time::S)); m_stopEvent = Simulator::Schedule (time, &FlowMonitor::StopRightNow, this); }