diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index 81cf95f857b9..a3a64d2bb4e9 100644 --- a/tools/tinderbox/build-seamonkey-util.pl +++ b/tools/tinderbox/build-seamonkey-util.pl @@ -20,7 +20,7 @@ use File::Basename; # for basename(); use Config; # for $Config{sig_name} and $Config{sig_num} -$::UtilsVersion = '$Revision: 1.82 $ '; +$::UtilsVersion = '$Revision: 1.83 $ '; package TinderUtils; @@ -953,9 +953,13 @@ sub run_all_tests { # Figure out the average startup time. $avg_startuptime = $agg_startuptime / $startup_count; print_log "Average startup time: $avg_startuptime\n"; - print_log "\n\n __avg_startuptime,$avg_startuptime\n\n"; - print_log "\n\nTinderboxPrint:Ts:$avg_startuptimems\n\n"; - + + my $min_startuptime = min(@times); + print_log "Minimum startup time: $min_startuptime\n"; + + # print_log "\n\n __avg_startuptime,$avg_startuptime\n\n"; + print_log "\n\n __avg_startuptime,$min_startuptime\n\n"; + # Report data back to server if($Settings::TestsPhoneHome) { print_log "phonehome = 1\n"; @@ -989,6 +993,16 @@ sub BinaryExists { } } +sub min() { + my $m = $_[0]; + my $i; + foreach $i (@_) { + $m = $i if ($m > $i); + } + return $m; +} + + sub DeleteBinary { my ($binary) = @_; my ($binary_basename) = File::Basename::basename($binary);