From 747e7bd612f5ddb6263c853988fcd46b84b74d8e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 19 Jan 2009 09:50:08 +0000 Subject: [PATCH] ebl Take Created job in account to test current jobs git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8378 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/script/check_bacula.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/bweb/script/check_bacula.pl b/gui/bweb/script/check_bacula.pl index e8210990c5..9dd2dac72c 100644 --- a/gui/bweb/script/check_bacula.pl +++ b/gui/bweb/script/check_bacula.pl @@ -146,15 +146,15 @@ if (@group) { } ################################################################ -# check if more than X jobs are running for too long (more than -# 2 hours) since Y ago +# check if more than X jobs are running or just created +# for too long (more than 2 hours) since Y ago $query = " SELECT count(1) AS nb FROM Job $c_filter $g_filter - WHERE JobStatus = 'R' - AND Type = 'B' + WHERE JobStatus IN ('R', 'C') + AND Type 'B' AND JobTDate > $since AND JobTDate < $trig $where -- 2.39.5