diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2001-12-28 18:34:25 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2001-12-28 18:34:25 +0000 |
commit | d935c6d8257a8dfcd5be2dcd5d75bd45cf971c69 (patch) | |
tree | b9c79b04a74ea05c195cd237f301f33649fae3f3 /performance-tests/TCP/tcp_test.cpp | |
parent | 4ae6e5e08166dbaeb1029d720bbc985ea8b894a8 (diff) | |
download | ATCD-d935c6d8257a8dfcd5be2dcd5d75bd45cf971c69.tar.gz |
ChangeLogTag: Fri Dec 28 19:22:08 2001 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'performance-tests/TCP/tcp_test.cpp')
-rw-r--r-- | performance-tests/TCP/tcp_test.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/performance-tests/TCP/tcp_test.cpp b/performance-tests/TCP/tcp_test.cpp index af75df3ba12..9bcee4e1989 100644 --- a/performance-tests/TCP/tcp_test.cpp +++ b/performance-tests/TCP/tcp_test.cpp @@ -249,16 +249,17 @@ Client::run (void) if (dump_history) { - history.dump_samples ("HISTORY", gsf); + history.dump_samples (ACE_TEXT("HISTORY"), gsf); } ACE_Basic_Stats latency; history.collect_basic_stats (latency); - latency.dump_results ("Client", gsf); - ACE_Throughput_Stats::dump_throughput ("Client", gsf, + latency.dump_results (ACE_TEXT("Client"), gsf); + ACE_Throughput_Stats::dump_throughput (ACE_TEXT("Client"), + gsf, test_end - test_start, latency.samples_count ()); - + return 0; } @@ -495,7 +496,7 @@ run_server (ACE_INET_Addr &addr) } int -main (int argc, char *argv[]) +main (int argc, ACE_TCHAR *argv[]) { int c, dstport = DEFPORT; int priority = @@ -521,7 +522,7 @@ main (int argc, char *argv[]) } - ACE_Get_Opt getopt (argc, argv, "hxwvb:I:p:sci:m:at:"); + ACE_Get_Opt getopt (argc, argv, ACE_TEXT("hxwvb:I:p:sci:m:at:")); while ((c = getopt ()) != -1) { @@ -648,7 +649,7 @@ main (int argc, char *argv[]) { if (remote_addr.set (dstport, (ACE_UINT32) ACE_OS::inet_addr - (argv[getopt.opt_ind ()])) == -1) + (ACE_TEXT_ALWAYS_CHAR(argv[getopt.opt_ind ()]))) == -1) ACE_ERROR_RETURN ((LM_ERROR, "invalid IP address: %s\n", argv[getopt.opt_ind ()]), |