]> git.joonet.de Git - adminer.git/commitdiff
Show number of connections (thanks to fos4)
authorJakub Vrana <jakub@vrana.cz>
Fri, 10 Dec 2010 16:08:07 +0000 (17:08 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 10 Dec 2010 16:08:07 +0000 (17:08 +0100)
adminer/processlist.inc.php

index 09e22ff66e82142fc10f2682614d9013aae202a6..7af10c3f362c03f98d8741d065ba082424e2ad50 100644 (file)
@@ -15,6 +15,7 @@ page_header(lang('Process list'), $error);
 <form action="" method="post">
 <table cellspacing="0" onclick="tableClick(event);" class="nowrap">
 <?php
+$i = -1;
 foreach (get_rows("SHOW FULL PROCESSLIST") as $i => $row) {
        if (!$i) {
                echo "<thead><tr lang='en'><th>&nbsp;<th>" . implode("<th>", array_keys($row)) . "</thead>\n";
@@ -30,4 +31,5 @@ foreach (get_rows("SHOW FULL PROCESSLIST") as $i => $row) {
 <p>
 <input type="hidden" name="token" value="<?php echo $token; ?>">
 <input type="submit" value="<?php echo lang('Kill'); ?>">
+<?php echo ($i + 1) . "/" . $connection->result("SELECT @@max_connections"); ?>
 </form>