From 3e4e7b1fdf6a975a327385f5427c6d6fb6cd8f6e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 17 Jul 2003 11:48:48 +0000 Subject: [PATCH] wrong percentage --- ChangeLog | 5 +++++ server_status.php3 | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cd22a831b..61968d0b4 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-07-17 Marc Delisle + * server_status.php3: the percentages of Query types did not add up + to 100, because the number of connections is included in the total + number of queries, thanks to jht001 ( Jams H Thompson ) + 2003-07-17 Alexander M. Turek * tbl_change.php3, libraries/common.lib.php3: Fixed a MySQL 4.1 bug that appeared when inserting values into ENUM or SET fields. diff --git a/server_status.php3 b/server_status.php3 index c35e6a848..8249bed34 100644 --- a/server_status.php3 +++ b/server_status.php3 @@ -180,12 +180,16 @@ unset($tmp_array); $useBgcolorOne = TRUE; $countRows = 0; while (list($name, $value) = each($queryStats)) { + +// For the percentage column, use Questions - Connections, because +// the number of connections is not an item of the Query types +// but is included in Questions. Then the total of the percentages is 100. ?>          -   %  +   %