[netperf-dev] netperf2 commit notice r402 - trunk/src

raj at netperf.org raj at netperf.org
Tue Jun 28 10:42:03 PDT 2011


Author: raj
Date: 2011-06-28 10:42:02 -0700 (Tue, 28 Jun 2011)
New Revision: 402

Modified:
   trunk/src/nettest_omni.c
Log:
more fixes for migrated tests

Modified: trunk/src/nettest_omni.c
===================================================================
--- trunk/src/nettest_omni.c	2011-06-28 01:29:59 UTC (rev 401)
+++ trunk/src/nettest_omni.c	2011-06-28 17:42:02 UTC (rev 402)
@@ -6500,7 +6500,7 @@
 Alignment      Offset         %-8.8s %-8.8s    Sends   %-8.8s Recvs\n\
 Local  Remote  Local  Remote  Xfered   Per                 Per\n\
 Send   Recv    Send   Recv             Send (avg)          Recv (avg)\n\
-%5d   %5d  %5d   %5d %6.4g  %6.2f    %6d   %6.2f %6d\n";
+%5d   %5d  %5d   %5d %6"PRId64"  %6.2f    %6"PRId64"   %6.2f %6"PRId64"\n";
 
   char *ksink_fmt2 = "\n\
 Maximum\n\
@@ -6556,7 +6556,7 @@
 	if (print_headers) {
 	  fprintf(where,
 		  cpu_title,
-		  sd_str,
+		  format_units(),
 		  local_cpu_method,
 		  remote_cpu_method);
 	}
@@ -6565,7 +6565,7 @@
 		cpu_fmt_1,		/* the format string */
 		rsr_size,		/* remote recvbuf size */
 		lss_size,		/* local sendbuf size */
-		send_size,		/* how large were the sends */
+		send_size,	        /* how large were the sends */
 		elapsed_time,		/* how long was the test */
 		thruput, 		/* what was the xfer rate */
 		local_cpu_utilization,	/* local cpu */
@@ -6597,9 +6597,9 @@
 		tput_fmt_1,		/* the format string */
 		rsr_size, 		/* remote recvbuf size */
 		lss_size, 		/* local sendbuf size */
-		send_size,		/* how large were the sends */
+		send_size,	        /* how large were the sends */
 		elapsed_time, 		/* how long did it take */
-		thruput,                  /* how fast did it go */
+		thruput,                /* how fast did it go */
 		((print_headers) || 
 		 (result_brand == NULL)) ? "" : result_brand);
 	break;
@@ -6638,12 +6638,11 @@
       fprintf(where,
 	      ksink_fmt2,
 	      transport_mss);
-      fflush(where);
 #ifdef WANT_HISTOGRAM
       fprintf(where,"\n\nHistogram of time spent in send() call.\n");
-      fflush(where);
       HIST_report(time_hist);
 #endif /* WANT_HISTOGRAM */
+      fflush(where);
     }
   
   }
@@ -6681,7 +6680,7 @@
 Alignment      Offset         %-8.8s %-8.8s    Recvs   %-8.8s Sends\n\
 Local  Remote  Local  Remote  Xfered   Per                 Per\n\
 Recv   Send    Recv   Send             Recv (avg)          Send (avg)\n\
-%5d   %5d  %5d   %5d %6.4g  %6.2f    %6d   %6.2f %6d\n";
+%5d   %5d  %5d   %5d %6"PRId64"  %6.2f    %6d   %6.2f %6d\n";
 
   char *ksink_fmt2 = "\n\
 Maximum\n\
@@ -6689,7 +6688,7 @@
 Size (bytes)\n\
 %6d\n";
 
-  send_omni_inner(remote_host, legacy, "MIGRATED TCP STREAM TEST");
+  send_omni_inner(remote_host, legacy, "MIGRATED TCP MAERTS TEST");
 
 
   /* We are now ready to print all the information, but only if we are
@@ -6744,11 +6743,11 @@
     
 	fprintf(where,
 		cpu_fmt_1,		/* the format string */
-		rsr_size,		        /* remote recvbuf size */
-		lss_size,		        /* local sendbuf size */
+		rsr_size,		/* remote recvbuf size */
+		lss_size,		/* local sendbuf size */
 		send_size,		/* how large were the recvs */
 		elapsed_time,		/* how long was the test */
-		thruput, 		        /* what was the xfer rate */
+		thruput, 		/* what was the xfer rate */
 		local_cpu_utilization,	/* local cpu */
 		remote_cpu_utilization,	/* remote cpu */
 		local_service_demand,	/* local service demand */



More information about the netperf-dev mailing list