Skip to content

Commit 446a8ad

Browse files
uli42sunweaver
authored andcommitted
testscripts: whitespace fixes
1 parent b40d0b1 commit 446a8ad

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

testscripts/slave-agent

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
# Run:
3333
# nxproxy [...] slave=12000
3434
# nxagent -display nx/nx,options=nxagent.conf # slave=22000 in nxagent.conf
35-
#
35+
#
3636
# Where 12000 and 22000 are example TCP ports the program will listen on.
37-
#
37+
#
3838
# For ease of debugging and running both sides on a single machine, the script
3939
# reacts to its own name and changes the prompt to "Proxy" if $0 contains
4040
# "proxy", or "Agent" if it contains "agent". This has no other effect.
4141
#
42-
#
42+
#
4343

4444
use strict;
4545
use POSIX ":sys_wait_h";
@@ -99,7 +99,7 @@ while(!$EXIT) {
9999
if (!defined $ret) {
100100
die "Read failed: $!";
101101
}
102-
102+
103103
if (!$ret) {
104104
last;
105105
}
@@ -156,7 +156,7 @@ sub cmd_blkecho {
156156
if ( !defined $ret ) {
157157
die "Error reading from socket: $!";
158158
}
159-
159+
160160
last if ( $ret == 0 );
161161
$buf .= $tmp;
162162
}
@@ -226,7 +226,7 @@ sub cmd_fastgen {
226226
}
227227
}
228228

229-
# Output RFC 864 chargen.
229+
# Output RFC 864 chargen.
230230
# Used to test bandwidth
231231
sub cmd_chargen {
232232
my $text = "";

testscripts/slave-client

+5-6
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Options:
7474
-d, --dump Dump benchmark data in tab separated format, for
7575
graphing.
7676
-e, --delay=FLOAT Delay between blocks or pings. None by default.
77-
-H, --host=HOST Host to connect to. 'localhost' by default.
77+
-H, --host=HOST Host to connect to. 'localhost' by default.
7878
-P, --port=PORT Port to connect to. Mandatory.
7979
8080
Benchmarks:
@@ -84,7 +84,7 @@ Benchmarks:
8484
--fastreadbench Benchmark reading a single repeated character.
8585
--fastwritebench Benchmark writing a single repeated character.
8686
--pingbench Benchmark ping time.
87-
--randechobench Benchmark sending random data, and receiving it
87+
--randechobench Benchmark sending random data, and receiving it
8888
back
8989
--randreadbench Benchmark reading random, incompressible data.
9090
--randwritebench Benchmark writing random, incompressible data.
@@ -100,7 +100,7 @@ Example:
100100
101101
Connect to port 42000 and run all the benchmarks:
102102
$0 --port 42000 -a
103-
103+
104104
HELP
105105
exit(0);
106106
}
@@ -111,7 +111,7 @@ if (!$opt_port) {
111111
}
112112

113113

114-
my $socket = IO::Socket::INET->new(PeerAddr => $opt_host, PeerPort => $opt_port, Proto => 'tcp');
114+
my $socket = IO::Socket::INET->new(PeerAddr => $opt_host, PeerPort => $opt_port, Proto => 'tcp');
115115
if (!$socket) {
116116
die "Can't connect to $opt_host:$opt_port: $!";
117117
}
@@ -142,7 +142,7 @@ if ( $cmd_pingbench ) {
142142
for(my $i=0;$i<$opt_count;$i++) {
143143
send_cmd("echo $i");
144144
read_until_prompt();
145-
145+
146146
my $elapsed = tv_interval($t0, [gettimeofday()]);
147147
if ( $opt_dump ) {
148148
print "$elapsed\t$i\n";
@@ -413,4 +413,3 @@ sub show_last {
413413
undef $self->{prev_time};
414414
$self->set( $self->{last_str} ) if ( $self->{last_str} );
415415
}
416-

0 commit comments

Comments
 (0)