src/simulator/simulator.cc
changeset 148 7af4f32deeed
parent 147 705658c244c3
child 150 663120712cd9
--- a/src/simulator/simulator.cc	Sat Oct 28 21:21:55 2006 +0200
+++ b/src/simulator/simulator.cc	Sat Oct 28 21:25:00 2006 +0200
@@ -202,10 +202,10 @@
     if (m_logEnable) 
       {
         m_log << "i "<<m_currentUid<<" "<<m_currentNs<<" "
-              <<m_uid<<" "<<time.ApproximateToNanoSeconds () << std::endl;
+              <<m_uid<<" "<<ns << std::endl;
       }
     m_uid++;
-    return m_events->Insert (event, key);
+    m_events->Insert (event, key);
 }
 void 
 SimulatorPrivate::ScheduleDestroy (EventImpl *event)
@@ -213,7 +213,7 @@
   m_destroy.push_back (std::make_pair (event, m_uid));  
   if (m_logEnable) 
     {
-      m_log << "id " << m_currentUid << " " << Now ().Ns () << " "
+      m_log << "id " << m_currentUid << " " << Now ().ApproximateToNanoSeconds () << " "
             << m_uid << std::endl;
     }
   m_uid++;