From: Eric Bollengier Date: Mon, 16 Jun 2008 16:37:59 +0000 (+0000) Subject: ebl update statistics page to use long term statistics table X-Git-Tag: Release-3.0.0~1298 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1dbb4407ddb643fb4af9fad29f6adabb3c05da8a;p=bacula%2Fbacula 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 --- 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