From 6a25353718119def0a8b51bcb1cb5e9ca9abb4d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Wed, 6 May 2009 10:21:18 +0000
Subject: [PATCH] Fix bug in computation in other arc of pie chart in
 statistics module

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1492 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/statistics/www/showstats.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/statistics/www/showstats.php b/modules/statistics/www/showstats.php
index e972b6ab4..bc790862e 100644
--- a/modules/statistics/www/showstats.php
+++ b/modules/statistics/www/showstats.php
@@ -220,8 +220,7 @@ foreach($topdelimiters AS $td) {
 	$sum += $summaryDataset[$td];
 	$piedata[] = number_format(100*$summaryDataset[$td] / $summaryDataset['_'], 2);
 }
-$piedata[] = number_format(100*($sum /$summaryDataset['_']), 2);
-
+$piedata[] = number_format(100 - 100*($sum /$summaryDataset['_']), 2);
 
 $datasets = array();
 
-- 
GitLab