File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ sub client {
130
130
my $e_l = length $expected ;
131
131
$fd_out -> autoflush;
132
132
my $error = " " ;
133
- $error = " M " if $r ne $expected ;
133
+ $error = " E " if $r ne $expected ;
134
134
print $fd_out (" $client_id \t $r_l \t $error \n " );
135
135
($? = 1, die " $service got [$r ] expected [$expected ]\n " ) if ($r ne $expected );
136
136
if (rand (1) < $stop_client_probability ) {
@@ -245,6 +245,10 @@ if (!fork) {
245
245
my ($curr_rcv ) = ${$data {$client_id }}[0] + $r_l ;;
246
246
$error //= " " ;
247
247
my ($curr_error ) = " ${$data {$client_id }}[1]$error " ;
248
+ # Consolidate into... roman numerals!
249
+ $curr_error =~ s / D{10}/ X/ ;
250
+ $curr_error =~ s / X{10}/ C/ ;
251
+ $curr_error =~ s / C{10}/ M/ ;
248
252
249
253
$data {$client_id } = [ $r_l + $curr_rcv , " $curr_error$error " ];
250
254
You can’t perform that action at this time.
0 commit comments