Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2011-08-30 13:41:31 +0400
committerMichal Čihař <mcihar@suse.cz>2011-08-30 13:41:31 +0400
commitc8dd9d5d4ac3c3007a5434db8139093910033d7f (patch)
tree0db7e31ed80b1fc9659f169de6f295c4292650ec /server_status.php
parent1edb826db48c02f2325eda9112ff0185f1ecb29b (diff)
Fix indentation
Diffstat (limited to 'server_status.php')
-rw-r--r--server_status.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/server_status.php b/server_status.php
index 14d762dfeb..d7da7b3a75 100644
--- a/server_status.php
+++ b/server_status.php
@@ -48,21 +48,21 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
// Query realtime chart
case 'queries':
- if (PMA_DRIZZLE) {
- $sql = "SELECT concat('Com_', variable_name), variable_value
- FROM data_dictionary.GLOBAL_STATEMENTS
- WHERE variable_value > 0
- UNION
- SELECT variable_name, variable_value
- FROM data_dictionary.GLOBAL_STATUS
- WHERE variable_name = 'Questions'";
- $queries = PMA_DBI_fetch_result($sql, 0, 1);
- } else {
- $queries = PMA_DBI_fetch_result(
- "SHOW GLOBAL STATUS
- WHERE (Variable_name LIKE 'Com_%' OR Variable_name = 'Questions')
- AND Value > 0", 0, 1);
- }
+ if (PMA_DRIZZLE) {
+ $sql = "SELECT concat('Com_', variable_name), variable_value
+ FROM data_dictionary.GLOBAL_STATEMENTS
+ WHERE variable_value > 0
+ UNION
+ SELECT variable_name, variable_value
+ FROM data_dictionary.GLOBAL_STATUS
+ WHERE variable_name = 'Questions'";
+ $queries = PMA_DBI_fetch_result($sql, 0, 1);
+ } else {
+ $queries = PMA_DBI_fetch_result(
+ "SHOW GLOBAL STATUS
+ WHERE (Variable_name LIKE 'Com_%' OR Variable_name = 'Questions')
+ AND Value > 0", 0, 1);
+ }
cleanDeprecated($queries);
// admin commands are not queries
unset($queries['Com_admin_commands']);