diff options
author | gthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 16:06:16 +0000 |
---|---|---|
committer | gthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 16:06:16 +0000 |
commit | 841010459c446fce78cdf41cfffe17daa761e356 (patch) | |
tree | 0277b4acad89fd462f3a28ee208efb58472aa64d /performance-tests | |
parent | 05323279c17c01878697bd4c149b00c5d281bdbe (diff) | |
download | ATCD-841010459c446fce78cdf41cfffe17daa761e356.tar.gz |
Fixed trailing whitespace problems
Diffstat (limited to 'performance-tests')
-rw-r--r-- | performance-tests/SCTP/SOCK_SEQPACK_clt.cpp | 6 | ||||
-rw-r--r-- | performance-tests/SCTP/SOCK_STREAM_clt.cpp | 8 | ||||
-rwxr-xr-x | performance-tests/SCTP/run_spectrum.pl | 14 |
3 files changed, 14 insertions, 14 deletions
diff --git a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp index 8d964c01f98..74a2a2c3d00 100644 --- a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp +++ b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp @@ -1,6 +1,6 @@ // $Id$ -// On WIN32, math.h may contain template code, +// On WIN32, math.h may contain template code, // which cannot be wrapped by 'extern "C"' #ifdef WIN32 #include <math.h> @@ -262,10 +262,10 @@ HIST runUnmarshalledOctetTest(ACE_CDR::Octet *buf, size_t seqLen, ACE_SOCK_SEQPA 0); // compute the message latency in micro-seconds - messageLatency_usec = + messageLatency_usec = (ACE_static_cast(double, - ACE_UINT64_DBLCAST_ADAPTER(endTime)) - + ACE_UINT64_DBLCAST_ADAPTER(endTime)) - ACE_static_cast(double, ACE_UINT64_DBLCAST_ADAPTER(startTime))) diff --git a/performance-tests/SCTP/SOCK_STREAM_clt.cpp b/performance-tests/SCTP/SOCK_STREAM_clt.cpp index 81bd75aa362..754f16413f3 100644 --- a/performance-tests/SCTP/SOCK_STREAM_clt.cpp +++ b/performance-tests/SCTP/SOCK_STREAM_clt.cpp @@ -1,6 +1,6 @@ // $Id$ -// On WIN32, math.h may contain template code, +// On WIN32, math.h may contain template code, // which cannot be wrapped by 'extern "C"' #ifdef WIN32 #include <math.h> @@ -242,7 +242,7 @@ HIST runUnmarshalledOctetTest(ACE_CDR::Octet *buf, size_t seqLen, ACE_SOCK_Strea "ACE_OS::gethrtime()"), 0); - + ACE_CDR::ULong msgLenExpressed = ACE_HTONL(msgLen); iov[0].iov_base = ACE_reinterpret_cast(char *, &msgLenExpressed); iov[0].iov_len = ACE_CDR::LONG_SIZE; @@ -272,10 +272,10 @@ HIST runUnmarshalledOctetTest(ACE_CDR::Octet *buf, size_t seqLen, ACE_SOCK_Strea 0); // compute the message latency in micro-seconds - messageLatency_usec = + messageLatency_usec = (ACE_static_cast(double, - ACE_UINT64_DBLCAST_ADAPTER(endTime)) - + ACE_UINT64_DBLCAST_ADAPTER(endTime)) - ACE_static_cast(double, ACE_UINT64_DBLCAST_ADAPTER(startTime))) diff --git a/performance-tests/SCTP/run_spectrum.pl b/performance-tests/SCTP/run_spectrum.pl index 40eb9d74525..98b2dbea2f5 100755 --- a/performance-tests/SCTP/run_spectrum.pl +++ b/performance-tests/SCTP/run_spectrum.pl @@ -21,7 +21,7 @@ run_spectrum.pl - Run a spectrum of performance tests. =head1 SYNOPSIS run_spectrum.pl [ --help ] - [ --manual ] + [ --manual ] [ --service (STREAM|SEQPACK) ] [ --protocol (TCP|SCTP) ] [ --config_file filename ] @@ -199,12 +199,12 @@ $service =~ s/seqpacket/seqpack/; # Accept "seqpacket" as synonym for "seqpac $service =~ /^(stream|seqpack)$/ or pod2usage("Service must be STREAM or SEQPACK\n"); -$protocol =~ /^(tcp|sctp)$/ +$protocol =~ /^(tcp|sctp)$/ or pod2usage("Protocol must be TCP or SCTP\n"); $service eq "seqpack" and $protocol eq "tcp" and pod2usage("Cannot use SEQPACK service with TCP\n"); - + # Open config file open CONFIG, "< $config_file" or die "cannot open file: $config_file\n"; @@ -221,7 +221,7 @@ while (<CONFIG>) { } } -# Close config file +# Close config file close CONFIG; # Print options @@ -236,13 +236,13 @@ print "Read options from $config_file: \"$options\"\n\n"; my $max_size = 16; $max_size = 15 if $protocol eq "sctp"; for (my $i = 2; $i <= $max_size; ++$i) { - + # Assemble client parameters and print out the command line my $client_params = "-t $protocol -s $i $options >> $output_file"; print "$client_programs{$service} $client_params\n"; - + # Configure client - my $client = + my $client = new PerlACE::Process($client_programs{$service}, $client_params); # Spawn client |