From b4906774800af6e774eb86b24d1698247b7eb3e0 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 9 Oct 2010 10:58:01 +0200 Subject: [PATCH] bweb: ensure to have always a result for progress bar --- 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 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 "; -- 2.39.5