Code

Renamed function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Aug 2010 13:59:56 +0000 (13:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Aug 2010 13:59:56 +0000 (13:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19437 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/statistics/class_statistics.inc

index 6be91261bc1e9026bffb4931933ddbc36d31a7b5..eb55d4201d7c6713ac3e4d368a3a89e43f448989 100644 (file)
@@ -343,8 +343,8 @@ class statistics extends plugin
         if(!count($gData)){
             return;
         }
-        $this->generateCategoryPieGraph($gData['actionsPerCategory'], 1, _("Plugin usage"));
-        $this->generateCategoryPieGraph($gData['actionsPerPluginAction'], 7,_("Actions"));
+        $this->generatePieGraph($gData['actionsPerCategory'], 1, _("Plugin usage"));
+        $this->generatePieGraph($gData['actionsPerPluginAction'], 7,_("Actions"));
         $this->generateActionsGraph($gData);
 
 #       // Generate graph which displays the memory usage over time
@@ -455,6 +455,7 @@ class statistics extends plugin
             $dataSet->AddSerie('Errors');
         }
 
+        $chart->drawLegend(750,30,$dataSet->GetDataDescription(),255,255,255);
 
         // Draw the error graph on top of the other graphs now.
         // But remove the category-graph before. 
@@ -531,7 +532,7 @@ class statistics extends plugin
 
     /*! \brief  Generate the pie-chart which displays the overall-plugin-usage
      */
-    function generateCategoryPieGraph($data, $gID, $title)
+    function generatePieGraph($data, $gID, $title)
     {
         $this->graphIDs[$gID] = 0;
         if(!count($data)) return;