From: Eric Bollengier Date: Thu, 27 Dec 2007 10:46:20 +0000 (+0000) Subject: ebl Fix a couple of bug X-Git-Tag: Release-3.0.0~2097 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2063d98806d498a490b8fad8e7e78e7f64b46ba1;p=bacula%2Fbacula ebl Fix a couple of bug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6144 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/lib/GBalloon.pm b/gui/bweb/lib/GBalloon.pm index 4ff45f2b1b..aece21029f 100644 --- a/gui/bweb/lib/GBalloon.pm +++ b/gui/bweb/lib/GBalloon.pm @@ -57,8 +57,9 @@ sub new x_min => 0, y_min => 0, - x_max => 0, - y_max => 0, + x_max => 1, + y_max => 1, + z_max => 1, data => [], type => {}, @@ -159,7 +160,7 @@ sub finalize return unless (scalar(@data)); # the max z will take something like 10% of the total size - $self->{z_max} = sqrt($data[0]->[2]); + $self->{z_max} = sqrt($data[0]->[2]) || 1; my $c=0; # print STDERR "max: x=$self->{x_max} y=$self->{y_max} z=$self->{z_max}\n"; diff --git a/gui/bweb/technotes-2.3 b/gui/bweb/technotes-2.3 index f27be95817..afac31d529 100644 --- a/gui/bweb/technotes-2.3 +++ b/gui/bweb/technotes-2.3 @@ -1,3 +1,7 @@ +27Dec07 +ebl Fix a couple of small bug in GBalloon module when + we don't find any valid job + 23Dec07 ebl Each user can have a different template dir (lang). ebl WARNING: now, bweb/tpl contains main tpl files