Code

Updated chart rendering
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 Aug 2010 07:07:32 +0000 (07:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 Aug 2010 07:07:32 +0000 (07:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19447 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/statistics/chartClasses/class_memoryUsageChart.inc

index a3f8914860ff5101f2d67f431dba6025836d80f1..2dd9f87f70b3bbc2fd78735b36c6f527796b2042 100644 (file)
@@ -36,7 +36,9 @@ class memoryUsageChart extends statChart
         $dataSet->AddAllSeries();  
         $dataSet->AddPoint($this->graphData['dates'], 'date');
         $dataSet->SetAbsciseLabelSerie('date');  
-        
+       
+        echo $this->enableCaching;
         // Read graph from cache?
         $pCache = new pCache('/var/spool/gosa/');
         if($this->enableCaching && $pCache->IsInCache(get_class(),$dataSet->GetData())){
@@ -62,7 +64,8 @@ class memoryUsageChart extends statChart
         $chart->drawLegend(650,30,$dataSet->GetDataDescription(),255,255,255);  
 
         $chart->drawScale($dataSet->GetData(),$dataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2, FALSE);
-        $chart->drawFilledCubicCurve($dataSet->GetData(),$dataSet->GetDataDescription(),.1,50); 
+#        $chart->drawFilledCubicCurve($dataSet->GetData(),$dataSet->GetDataDescription(),.1,50); 
+        $chart->drawFilledLineGraph($dataSet->GetData(),$dataSet->GetDataDescription(),50,TRUE); 
 
         // Generate new and unique graph id
         $this->graphID = preg_replace("/[^0-9]/","",microtime(TRUE));