rfe #1251 Show "Overhead" with same precision for all tables

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2014-09-24 15:54:17 -04:00
parent 1de2ceba42
commit 0f74231fee
2 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,7 @@ phpMyAdmin - ChangeLog
+ rfe #1544 MySQL 5.7.5 compatibility
+ rfe #1529 Avoid session timeout when user is active
- bug #4528 Can't import dump via SQL field
+ rfe #1251 Show "Overhead" with same precision for all tables
4.2.10.0 (not yet released)
- bug #4361 Can't change font size (when config.inc.php not present)

View File

@ -1189,9 +1189,11 @@ function PMA_getValuesForAriaTable($db_is_system_schema, $current_table,
$tblsize, 3, ($tblsize > 0) ? 1 : 0
);
if (isset($current_table['Data_free']) && $current_table['Data_free'] > 0) {
// here, the value 4 as the second parameter
// would transform 6.1MiB into 6,224.6KiB
list($formatted_overhead, $overhead_unit)
= PMA_Util::formatByteDown(
$current_table['Data_free'], 3,
$current_table['Data_free'], 4,
(($current_table['Data_free'] > 0) ? 1 : 0)
);
$overhead_size += $current_table['Data_free'];