From 1dbb4407ddb643fb4af9fad29f6adabb3c05da8a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 16 Jun 2008 16:37:59 +0000 Subject: [PATCH] ebl update statistics page to use long term statistics table git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7151 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lib/Bweb.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index a13897939c..844637d5ff 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -3619,7 +3619,7 @@ sub _display_group_stats unless ($carg->{qclient_group}) { return $self->error("Can't get group"); } - + my $jobt = $self->{info}->{stat_job_table} || 'Job'; my ($limit, $label) = $self->get_limit(%arg); my $query = " @@ -3629,7 +3629,8 @@ SELECT sum(Job.JobErrors) AS nb_err, sum(Job.JobFiles) AS nb_files, client_group.client_group_name AS clientname -FROM Job JOIN Client USING (ClientId) +FROM $jobt AS Job + JOIN Client USING (ClientId) JOIN client_group_member ON (Client.ClientId = client_group_member.ClientId) JOIN client_group USING (client_group_id) WHERE -- 2.39.5