From: hickert Date: Fri, 20 Aug 2010 10:09:29 +0000 (+0000) Subject: Updated stats X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=15828269fc052a21ad8ff2df628e562d22249a83;p=gosa.git Updated stats git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19417 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc index 4f834d3fe..8c5d59258 100644 --- a/gosa-core/plugins/generic/statistics/class_statistics.inc +++ b/gosa-core/plugins/generic/statistics/class_statistics.inc @@ -238,8 +238,7 @@ class statistics extends plugin if($count) $count = ($count); $dataArray[$category][$date] = $count; } - - + // Do not append empty data if(empty($category)) continue; @@ -304,6 +303,8 @@ class statistics extends plugin $errors[$date] = $count; } + ksort($errors); + $DataSet2->AddPoint($errors, 'Errors'); $DataSet2->SetSerieName(_('Error'), 'Errors'); $DataSet2->AddSerie('Errors'); @@ -330,19 +331,6 @@ class statistics extends plugin - - - - - - - - - - - - - // Prepare Data $graphData = array(); foreach($res['usagePerInterval'] as $dateStr => $data){