From 49449152d181d37f554a1b6e44836384d3c54b3d Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 27 Jun 2006 17:54:04 +0000 Subject: Bug 342749: Replace Bugzilla::Util's min and max with the List::Util equivalents Patch By Max Kanat-Alexander r=colin.ogilvie, r=vladd, a=justdave --- Bugzilla/Chart.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Chart.pm') diff --git a/Bugzilla/Chart.pm b/Bugzilla/Chart.pm index b2db9da30..729120e8e 100644 --- a/Bugzilla/Chart.pm +++ b/Bugzilla/Chart.pm @@ -38,6 +38,7 @@ use Bugzilla::Series; use Date::Format; use Date::Parse; +use List::Util qw(max); sub new { my $invocant = shift; @@ -313,10 +314,10 @@ sub readData { my $datediff = shift @datediff_total; push @processed_datediff, $datediff if defined($datediff); } - $self->{'y_max_value'} = Bugzilla::Util::max(@processed_datediff); + $self->{'y_max_value'} = max(@processed_datediff); } else { - $self->{'y_max_value'} = Bugzilla::Util::max(@maxvals); + $self->{'y_max_value'} = max(@maxvals); } $self->{'y_max_value'} |= 1; # For log() -- cgit v1.2.3-24-g4f1b