Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
forgot the copyright header
[simgrid.git] / teshsuite / s4u / comm-waitany / comm-waitany.cpp
index 407c7e8..890f460 100644 (file)
@@ -1,3 +1,8 @@
+/* Copyright (c) 2017. The SimGrid Team. All rights reserved.          */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include <iostream>
 #include <simgrid/s4u.hpp>
 #include <stdlib.h>
@@ -22,9 +27,9 @@ static void receiver()
   }
 
   for (int i = 0; i < NUM_COMMS; i++) {
-    XBT_INFO("Sleeping for 100 seconds (for the %dth time)...", i + 1);
-    simgrid::s4u::this_actor::sleep_for(100.0);
-    XBT_INFO("Calling wait_any() for %ld pending comms", pending_comms.size());
+    XBT_INFO("Sleeping for 3 seconds (for the %dth time)...", i + 1);
+    simgrid::s4u::this_actor::sleep_for(3.0);
+    XBT_INFO("Calling wait_any() for %zu pending comms", pending_comms.size());
     std::vector<simgrid::s4u::CommPtr>::iterator ret_it =
         simgrid::s4u::Comm::wait_any(pending_comms.begin(), pending_comms.end());
     XBT_INFO("Counting the number of completed comms...");