From: Marius Gavrilescu Date: Mon, 16 Mar 2015 14:40:25 +0000 (+0200) Subject: Fix some undef warnings X-Git-Tag: 5999.000_014~58 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1cdb31fc29c07affbb0edcccbf95072a1d1ef89c;p=gruntmaster-data.git Fix some undef warnings --- diff --git a/gruntmaster-problem b/gruntmaster-problem index f6d86dc..c3ee8de 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -166,10 +166,10 @@ sub cmd_check { } } - say 'Max time for AC: ' . max @good_times; - say 'Min time for TLE: ' . min @fail_times; + say 'Max time for AC: ' . max @good_times if @good_times; + say 'Min time for TLE: ' . min @fail_times if @fail_times; say $fail ? 'Test failed' : 'Test successful'; - exit $fail; + exit $fail if $fail; } ##################################################