gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25855 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r25855 - gnunet/src/testbed
Date: Tue, 22 Jan 2013 14:27:01 +0100

Author: harsha
Date: 2013-01-22 14:27:01 +0100 (Tue, 22 Jan 2013)
New Revision: 25855

Modified:
   gnunet/src/testbed/gnunet-testbed-profiler.c
Log:
- flush output

Modified: gnunet/src/testbed/gnunet-testbed-profiler.c
===================================================================
--- gnunet/src/testbed/gnunet-testbed-profiler.c        2013-01-22 11:04:05 UTC 
(rev 25854)
+++ gnunet/src/testbed/gnunet-testbed-profiler.c        2013-01-22 13:27:01 UTC 
(rev 25855)
@@ -440,6 +440,11 @@
 static void
 print_overlay_links_summary ()
 {
+  static int printed_already;
+
+  if (GNUNET_YES == printed_already)
+    return;
+  printed_already = GNUNET_YES;
   prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time);
   printf ("\n%u links established in %.2f seconds\n",
          established_links, ((double) prof_time.rel_value) / 1000.00);
@@ -575,6 +580,7 @@
       print_overlay_links_summary ();
       result = GNUNET_OK;
       fprintf (stdout, "Testbed running, waiting for keystroke to shut 
down\n");
+      fflush (stdout);
       (void) getc (stdin);
       shutdown_task = GNUNET_SCHEDULER_add_now (&do_shutdown, NULL);
     }    




reply via email to

[Prev in Thread] Current Thread [Next in Thread]