From faa2951a9670512245c9456c2350b0570c3c7320 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Sun, 24 Jul 2011 11:37:49 +0200 Subject: [PATCH] bacula-web: New parameter client for getStoredBytes() function in bweb class --- gui/bacula-web/includes/bweb.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/bacula-web/includes/bweb.inc.php b/gui/bacula-web/includes/bweb.inc.php index de0580b304..cacd6c9421 100644 --- a/gui/bacula-web/includes/bweb.inc.php +++ b/gui/bacula-web/includes/bweb.inc.php @@ -439,7 +439,7 @@ class Bweb return $vols['vols_count']; } - public function getStoredFiles( $start_timestamp, $end_timestamp, $job_name = 'ALL' ) + public function getStoredFiles( $start_timestamp, $end_timestamp, $job_name = 'ALL', $client = 'ALL' ) { $query = ""; $start_date = date( "Y-m-d H:i:s", $start_timestamp); @@ -461,6 +461,9 @@ class Bweb if( $job_name != 'ALL' ) $query .= " AND name = '$job_name'"; + if( $client != 'ALL' ) + $query .= " AND clientid = '$client'"; + // Execute query try { $result = $this->db_link->runQuery( $query ); -- 2.39.5