RFE #702485 - display total# queries per hour/minute/second.
This commit is contained in:
@@ -160,7 +160,9 @@ unset($tmp_array);
|
||||
|
||||
$useBgcolorOne = TRUE;
|
||||
$countRows = 0;
|
||||
$total = 0;
|
||||
while (list($name, $value) = each($queryStats)) {
|
||||
$total += $value;
|
||||
?>
|
||||
<tr>
|
||||
<td bgcolor="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> <?php echo htmlspecialchars($name); ?> </td>
|
||||
@@ -187,11 +189,31 @@ while (list($name, $value) = each($queryStats)) {
|
||||
}
|
||||
unset($countRows);
|
||||
unset($useBgcolorOne);
|
||||
|
||||
$value = $total;
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<br />
|
||||
<table border="0" align="right">
|
||||
<tr>
|
||||
<th> <?php echo $strTotalUC; ?> </th>
|
||||
<th> ø <?php echo $strPerHour; ?> </th>
|
||||
<th> ø <?php echo $strPerMinute; ?> </th>
|
||||
<th> ø <?php echo $strPerSecond; ?> </th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td bgcolor="<?php echo $cfg['BgcolorOne']; ?>" align="right"> <?php echo number_format($value, 0, $number_decimal_separator, $number_thousands_separator); ?> </td>
|
||||
<td bgcolor="<?php echo $cfg['BgcolorOne']; ?>" align="right"> <?php echo number_format(($value * 3600 / $serverStatus['Uptime']), 2, $number_decimal_separator, $number_thousands_separator); ?> </td>
|
||||
<td bgcolor="<?php echo $cfg['BgcolorOne']; ?>" align="right"> <?php echo number_format(($value * 60 / $serverStatus['Uptime']), 2, $number_decimal_separator, $number_thousands_separator); ?> </td>
|
||||
<td bgcolor="<?php echo $cfg['BgcolorOne']; ?>" align="right"> <?php echo number_format(($value / $serverStatus['Uptime']), 2, $number_decimal_separator, $number_thousands_separator); ?> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</table>
|
||||
</li>
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user