[netperf-dev] netperf2 commit notice r180 - trunk/src
raj at netperf.org
raj at netperf.org
Fri Jan 25 11:16:42 PST 2008
Author: raj
Date: 2008-01-25 11:16:41 -0800 (Fri, 25 Jan 2008)
New Revision: 180
Modified:
trunk/src/nettest_omni.c
Log:
fix NETPERF_LINE_TOT to account for spaces when concating the lines
Modified: trunk/src/nettest_omni.c
===================================================================
--- trunk/src/nettest_omni.c 2008-01-25 02:02:38 UTC (rev 179)
+++ trunk/src/nettest_omni.c 2008-01-25 19:16:41 UTC (rev 180)
@@ -618,7 +618,7 @@
strlen(netperf_output_source[x].line1) +\
strlen(netperf_output_source[x].line2) +\
strlen(netperf_output_source[x].line3) +\
- strlen(netperf_output_source[x].line4)
+ strlen(netperf_output_source[x].line4) + 4
netperf_output_source[OUTPUT_NONE].output_name = OUTPUT_NONE;
netperf_output_source[OUTPUT_NONE].line1 = "This Space";
@@ -1473,9 +1473,9 @@
netperf_output_source[output_csv_list[j]].tot_line_len = vallen;
buflen +=
- netperf_output_source[output_csv_list[j]].tot_line_len + 1;
+ netperf_output_source[output_csv_list[j]].tot_line_len;
}
-
+
hdr1 = malloc(buflen + 1);
val1 = malloc(buflen + 1);
@@ -1539,8 +1539,10 @@
printf("%s\n",hdr1);
printf("%s\n",val1);
}
+
if (hdr1 != NULL) free(hdr1);
if (val1 != NULL) free(val1);
+
}
void
More information about the netperf-dev
mailing list