From a481edd19506774018ecbdf09a7640ca37879fa0 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 16 Aug 2010 14:25:52 +0000 Subject: [PATCH] Updated statistics plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19399 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/generic/statistics/class_statistics.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc index 9badf61ec..0aa840e85 100644 --- a/gosa-core/plugins/generic/statistics/class_statistics.inc +++ b/gosa-core/plugins/generic/statistics/class_statistics.inc @@ -132,12 +132,14 @@ class statistics extends plugin // Build up DataSet. $DataSet2 = new pData; $intervalEntries = array(); - $max = 500; + $max = 0; foreach($res['actionsPerInterval'] as $category => $dates){ if(!isset($mostUsedCategories[$category])) continue; ksort($res['actionsPerInterval'][$category]); $DataSet2->AddPoint($res['actionsPerInterval'][$category], $category); $DataSet2->SetSerieName(_($category), $category); + $tmpMax = max($res['actionsPerInterval'][$category]); + if($tmpMax > $max) $max = $tmpMax; } $DataSet2->AddAllSeries(); -- 2.30.2