From: Eric Bollengier Date: Sat, 9 Oct 2010 08:58:01 +0000 (+0200) Subject: bweb: ensure to have always a result for progress bar X-Git-Tag: Release-5.2.1~1027 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4906774800af6e774eb86b24d1698247b7eb3e0;p=bacula%2Fbacula bweb: ensure to have always a result for progress bar --- diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 83e8793196..e4870596b0 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -3972,7 +3972,7 @@ SELECT jobname AS jobname, my $now = $btime; $query = " SELECT temp.jobname AS jobname, - CORR(jobbytes,jobtdate) AS corr_jobbytes, + COALESCE(CORR(jobbytes,jobtdate),0) AS corr_jobbytes, ($now*REGR_SLOPE(jobbytes,jobtdate) + REGR_INTERCEPT(jobbytes,jobtdate)) AS jobbytes, COUNT(1) AS nb_jobbytes ";