]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: ensure to have always a result for progress bar
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 9 Oct 2010 08:58:01 +0000 (10:58 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 9 Oct 2010 09:02:58 +0000 (11:02 +0200)
gui/bweb/lib/Bweb.pm

index 83e879319677495778f16622181f989ef870be0f..e4870596b0bd908495bf56e148d4a7ffc0b994be 100644 (file)
@@ -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 ";