// ===============================================================
// Last 7 days stored Bytes graph\r
// ===============================================================
- $graph = new BGraph( "graph2.png" );
+ $graph = new CGraph( "graph2.png" );
\r
foreach( $days as $day )\r
array_push( $days_stored_bytes, $dbSql->GetStoredBytesByJob( $backupjob_name, $day['start'], $day['end'] ) );\r
// ===============================================================
// Getting last 7 days stored files graph\r
// ===============================================================
- $graph = new BGraph("graph3.png" );
+ $graph = new CGraph("graph3.png" );
\r
foreach( $days as $day )\r
array_push( $days_stored_files, $dbSql->GetStoredFilesByJob( $backupjob_name, $day['start'], $day['end'] ) );\r
+-------------------------------------------------------------------------+
*/
-class BGraph{
+class CGraph{
private $title;
private $ytitle;
array_push( $data, $dbSql->GetJobsStatistics( $job_status ) );
}
-$graph = new BGraph( "graph.png" );
+$graph = new CGraph( "graph.png" );
$graph->SetData( $data, 'pie', 'text-data-single' );
$graph->SetGraphSize( 400, 230 );
// Pool and volumes graph
$data = array();
-$graph = new BGraph( "graph1.png" );
+$graph = new CGraph( "graph1.png" );
$pools = $dbSql->Get_Pools_List();
while( $pool = $pools->fetchRow( ) ) {
// Last 7 days stored Bytes graph
$data = array();
-$graph = new BGraph( "graph2.png" );
+$graph = new CGraph( "graph2.png" );
$days = array();
// Get the last 7 days interval (start and end)
// Generate test graph
$data = array( array('test', 100, 100, 200, 100), array('test1', 150, 100, 150, 100 ) );
- $graph = new BGraph( "graph3.png" );
+ $graph = new CGraph( "graph3.png" );
$graph->SetColors( array('green', 'red' ) );
$graph->SetData( $data, 'pie', 'text-data-single' );