From: Davide Franco Date: Sun, 24 Jul 2011 10:20:02 +0000 (+0200) Subject: bacula-web: Changed period for last jobs to 1 week X-Git-Tag: Release-5.2.1~131 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5991fd4deb8c864206773e6d25c096fbf9b316c1;p=bacula%2Fbacula bacula-web: Changed period for last jobs to 1 week --- diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 996dde55b4..59bc4a6e5e 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -33,13 +33,14 @@ $http_post = CHttpRequest::getRequestVars( $_POST ); $http_get = CHttpRequest::getRequestVars( $_GET ); + // Backup job name if( isset( $http_post['backupjob_name'] ) ) $backupjob_name = $http_post['backupjob_name']; elseif( isset( $http_get['backupjob_name'] ) ) $backupjob_name = $http_get['backupjob_name']; else - die( "Please specify a backup job name " ); - + die( "Please specify a backup job name " ); + // Generate Backup Job report period string $backupjob_period = "From " . date( "Y-m-d", (NOW-WEEK) ) . " to " . date( "Y-m-d", NOW ); @@ -56,7 +57,7 @@ // =============================================================== // Last 7 days stored Bytes graph // =============================================================== - $graph = new CGraph( "graph2.png" ); + $graph = new CGraph( "graph8.png" ); foreach( $days as $day ) { $stored_bytes = $dbSql->getStoredBytes( $day['start'], $day['end'], $backupjob_name); @@ -74,7 +75,7 @@ // =============================================================== // Getting last 7 days stored files graph // =============================================================== - $graph = new CGraph("graph3.png" ); + $graph = new CGraph("graph9.png" ); foreach( $days as $day ) { $stored_files = $dbSql->getStoredFiles( $day['start'], $day['end'], $backupjob_name); @@ -93,7 +94,7 @@ $query .= "FROM Job "; $query .= "WHERE Name = '$backupjob_name' "; $query .= "ORDER BY EndTime DESC "; - $query .= "LIMIT 10 "; + $query .= "LIMIT 7 "; $jobs = array(); $joblevel = array( 'I' => 'Incr', 'D' => 'Diff', 'F' => 'Full' );