Skip to content

Commit 8af87eb

Browse files
committed
report errors as E instead of M, and consolidate restarts as simplified roman numerals
1 parent bf57d63 commit 8af87eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t_load

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ sub client {
130130
my $e_l = length $expected;
131131
$fd_out->autoflush;
132132
my $error = "";
133-
$error = "M" if $r ne $expected;
133+
$error = "E" if $r ne $expected;
134134
print $fd_out ("$client_id\t$r_l\t$error\n");
135135
($? = 1, die "$service got [$r] expected [$expected]\n") if ($r ne $expected);
136136
if (rand(1) < $stop_client_probability) {
@@ -245,6 +245,10 @@ if (!fork) {
245245
my ($curr_rcv) = ${$data{$client_id}}[0] + $r_l;;
246246
$error //= "";
247247
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/;
248252

249253
$data{$client_id} = [ $r_l + $curr_rcv, "$curr_error$error" ];
250254

0 commit comments

Comments
 (0)