rfe #1954161 [interface] Do not display long numbers in server status.

Fixed again, hopefully this way will work better.
This commit is contained in:
Michal Čihař
2011-01-28 09:55:20 +01:00
parent 311fd3b7cb
commit 39bc66df25

View File

@@ -803,6 +803,8 @@ if (! empty($section['title'])) {
} }
if ('%' === substr($name, -1, 1)) { if ('%' === substr($name, -1, 1)) {
echo PMA_formatNumber($value, 0, 2) . ' %'; echo PMA_formatNumber($value, 0, 2) . ' %';
} elseif (is_numeric($value) && $value == (int) $value && $value > 1000) {
echo PMA_formatNumber($value, 3, 1);
} elseif (is_numeric($value) && $value == (int) $value) { } elseif (is_numeric($value) && $value == (int) $value) {
echo PMA_formatNumber($value, 4, 0); echo PMA_formatNumber($value, 4, 0);
} elseif (is_numeric($value)) { } elseif (is_numeric($value)) {