double and int confusion in main-test-sync
authorCraig Dowell <craigdo@ee.washington.edu>
Wed, 29 Oct 2008 22:52:22 -0700
changeset 3822 9a246859e808
parent 3821 9ea825f066a2
child 3823 761f94afe2a2
child 3832 a457408d0bb6
double and int confusion in main-test-sync
samples/main-test-sync.cc
--- a/samples/main-test-sync.cc	Wed Oct 29 11:19:01 2008 -0700
+++ b/samples/main-test-sync.cc	Wed Oct 29 22:52:22 2008 -0700
@@ -61,7 +61,7 @@
 {
   NS_LOG_FUNCTION_NOARGS ();
   sleep (1);
-  for (uint32_t i = 0.001; i < 10000; ++i)
+  for (uint32_t i = 0; i < 10000; ++i)
     {
       //
       // Exercise the realtime relative now path
@@ -76,7 +76,7 @@
 {
   NS_LOG_FUNCTION_NOARGS ();
   sleep (1);
-  for (uint32_t i = 0.001; i < 10000; ++i)
+  for (uint32_t i = 0; i < 10000; ++i)
     {
       //
       // Exercise the realtime relative schedule path
@@ -100,7 +100,7 @@
   DynamicCast<RealtimeSimulatorImpl> (Simulator::GetImplementation ())->ScheduleRealtimeNow(MakeEvent (&first_function));
 
   // 
-  // drive the progression of m_currentTs at a ten millisecond rate
+  // drive the progression of m_currentTs at a ten millisecond rate from the main thread
   //
   for (double d = 0.; d < 14.999; d += 0.01)
     {