fix regex

This commit is contained in:
Ștefan Talpalaru 2021-06-02 13:54:07 +02:00
parent 00e0188b80
commit 79f851aa0e
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9

View File

@ -63,7 +63,7 @@ if ($bench_type eq 'block_sim') {
while (<$input_handle>) { while (<$input_handle>) {
# Strip both ends. Aren't hidden loop variables and default operator # Strip both ends. Aren't hidden loop variables and default operator
# arguments great? # arguments great?
s/^\s+|\s+$//; s/^\s+|\s+$//g;
$start_processing = 1 if /^Done!$/; $start_processing = 1 if /^Done!$/;
next if not $start_processing; next if not $start_processing;
@ -111,7 +111,7 @@ if ($bench_type eq 'block_sim') {
my $epoch_length = 0; my $epoch_length = 0;
while (<$input_handle>) { while (<$input_handle>) {
# Strip both ends. # Strip both ends.
s/^\s+|\s+$//; s/^\s+|\s+$//g;
$start_processing = 1 if /^:Done!$/; $start_processing = 1 if /^:Done!$/;
next if not $start_processing; next if not $start_processing;