[Rt-commit] r4368 - in RT-Extension-ActivityReports:
html/Reports/Activity/Elements
alexmv at bestpractical.com
alexmv at bestpractical.com
Tue Jan 3 14:27:25 EST 2006
Author: alexmv
Date: Tue Jan 3 14:27:25 2006
New Revision: 4368
Modified:
RT-Extension-ActivityReports/ (props changed)
RT-Extension-ActivityReports/html/Reports/Activity/Elements/MiniPlot
Log:
r8538 at zoq-fot-pik: chmrr | 2006-01-03 14:26:35 -0500
* Bullet-proof in case $max is somehow 0
Modified: RT-Extension-ActivityReports/html/Reports/Activity/Elements/MiniPlot
==============================================================================
--- RT-Extension-ActivityReports/html/Reports/Activity/Elements/MiniPlot (original)
+++ RT-Extension-ActivityReports/html/Reports/Activity/Elements/MiniPlot Tue Jan 3 14:27:25 2006
@@ -4,7 +4,7 @@
<ul>
% my $i = 0;
% for my $minor (@minor) {
-% my $percent = int( 100 * ($data->{$major}{$minor} || 0) / $max );
+% my $percent = int( 100 * ($data->{$major}{$minor} || 0) / ($max || 1) );
<li class="c<% ($i % 6) + 1%>" style="width: <% $barwidth %>%;
left: <% $baroffset + $each * $i %>%;
height: <% $percent %>%;"><div class="data"><% $minor %>: <% $percent %>%</div></li>
More information about the Rt-commit
mailing list