Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Prevent the print o redundant messages.
authorvelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 12 Apr 2010 14:34:13 +0000 (14:34 +0000)
committervelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 12 Apr 2010 14:34:13 +0000 (14:34 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7533 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/msg/gtnets/gtnets.c

index 854cba0..a702f7d 100644 (file)
@@ -73,13 +73,15 @@ int master(int argc, char *argv[])
   /* time measurement */
   start_time = MSG_get_clock();
   MSG_task_send(todo, id_alias);
-
   end_time = MSG_get_clock();
-  INFO3("Send completed (to %s). Transfer time: %f\t Agregate bandwidth: %f",
-        slave->name, (end_time - start_time),
-        task_comm_size / (end_time - start_time));
-  INFO2("Completed peer: %s time: %f", slave->name, (end_time - start_time));
 
+
+  if (!bool_printed) {
+    INFO3("Send completed (to %s). Transfer time: %f\t Agregate bandwidth: %f",
+         slave->name, (end_time - start_time),
+         task_comm_size / (end_time - start_time));
+    INFO2("Completed peer: %s time: %f", slave->name, (end_time - start_time));
+  }
   return 0;
 }                               /* end_of_master */