summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Chart.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-06-27 19:54:04 +0200
committermkanat%bugzilla.org <>2006-06-27 19:54:04 +0200
commit49449152d181d37f554a1b6e44836384d3c54b3d (patch)
tree6e410467bb8af5723f6e8594ee4839b87fa36189 /Bugzilla/Chart.pm
parentcb1a77094a983e1e884b21e6b4086fb0dbc3ea7b (diff)
downloadbugzilla-49449152d181d37f554a1b6e44836384d3c54b3d.tar.gz
bugzilla-49449152d181d37f554a1b6e44836384d3c54b3d.tar.xz
Bug 342749: Replace Bugzilla::Util's min and max with the List::Util equivalents
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin.ogilvie, r=vladd, a=justdave
Diffstat (limited to 'Bugzilla/Chart.pm')
-rw-r--r--Bugzilla/Chart.pm5
1 files changed, 3 insertions, 2 deletions
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()