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

raj at netperf.org raj at netperf.org
Mon Feb 4 14:32:46 PST 2008


Author: raj
Date: 2008-02-04 14:32:45 -0800 (Mon, 04 Feb 2008)
New Revision: 213

Modified:
   trunk/src/nettest_omni.c
Log:
support using a humanreadable output format file in csv output by having csv ignore the linebreaks

Modified: trunk/src/nettest_omni.c
===================================================================
--- trunk/src/nettest_omni.c	2008-02-04 20:43:55 UTC (rev 212)
+++ trunk/src/nettest_omni.c	2008-02-04 22:32:45 UTC (rev 213)
@@ -908,7 +908,10 @@
   name[0] = 0;
   name[80] = 0;
   j = 0;
-  while (((c = fgetc(selections)) != EOF)  && (line < 1)) {
+  /* let's allow the csv to turn the four lines of a human readable
+     output file to be used to create a single line csv output file by
+     not worrying about the line count. raj 2008--02-04 */
+  while ((c = fgetc(selections)) != EOF) {
     if (namepos == 80) {
       /* too long */
       
@@ -937,7 +940,6 @@
       output_csv_list[j++] = match_string_to_output(name);
       line++;
       namepos = 0;
-      j = 0;
     }
     else if (isprint(c)) {
       name[namepos++] = c;



More information about the netperf-dev mailing list