From fae75ba080d5dd5e50da91d8a2e59ce436b16cfc Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 14 Oct 2006 08:20:18 +0000 Subject: [PATCH] ebl fix #693 display_pool mysql bug (mysql return 0.0000 instead of 0) thanks to kleinermax git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3555 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lib/Bweb.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 6466b13536..956b9b5d48 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -2456,7 +2456,7 @@ LEFT JOIN Pool ON (Pool.PoolId = subq.PoolId) my $all = $self->dbh_selectall_hashref($query, 'name') ; foreach my $p (values %$all) { - if ($p->{volmax}) { + if ($p->{volmax} && $p->{volmax} > 0) { # mysql returns 0.0000 $p->{poolusage} = sprintf('%.2f', $p->{voltotal} * 100/ $p->{volmax}) ; } else { $p->{poolusage} = 0; -- 2.39.5