Drizzle-compatible Status tab
This commit is contained in:

committed by
Michal Čihař

parent
2d540f73b3
commit
52299e0658
@@ -653,8 +653,11 @@ $used_queries = $sections['com']['vars'];
|
|||||||
// reverse sort by value to show most used statements first
|
// reverse sort by value to show most used statements first
|
||||||
arsort($used_queries);
|
arsort($used_queries);
|
||||||
// remove all zero values from the end
|
// remove all zero values from the end
|
||||||
while (end($used_queries) == 0) {
|
// variable empty for Drizzle
|
||||||
array_pop($used_queries);
|
if ($used_queries) {
|
||||||
|
while (end($used_queries) == 0) {
|
||||||
|
array_pop($used_queries);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// number of tables to split values into
|
// number of tables to split values into
|
||||||
@@ -713,6 +716,7 @@ foreach ($used_queries as $name => $value) {
|
|||||||
<div class="clearfloat"></div>
|
<div class="clearfloat"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php if ($used_queries): ?>
|
||||||
<div id="serverstatusquerieschart">
|
<div id="serverstatusquerieschart">
|
||||||
<?php
|
<?php
|
||||||
if (empty($_REQUEST["query_chart"])) {
|
if (empty($_REQUEST["query_chart"])) {
|
||||||
@@ -726,6 +730,7 @@ foreach ($used_queries as $name => $value) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<div id="serverstatussection">
|
<div id="serverstatussection">
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user