From 2063d98806d498a490b8fad8e7e78e7f64b46ba1 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 27 Dec 2007 10:46:20 +0000 Subject: [PATCH] ebl Fix a couple of bug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6144 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lib/GBalloon.pm | 7 ++++--- gui/bweb/technotes-2.3 | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5