bug #2802870 [display] Incorrect overhead value for InnoDB

This commit is contained in:
Marc Delisle
2009-06-08 12:04:35 +00:00
parent 78b8db85e0
commit 7e409e1252
2 changed files with 3 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
3.2.1.0 (not yet released)
- bug #2799009 Login with ipv6 IP address breaks redirect
- bug #2796066 [priv] Inconsistent display of databases list
- bug #2802870 [display] Incorrect overhead value for InnoDB
3.2.0.0 (not yet released)
- [core] better support for vendor customisation (based on what Debian needs)

View File

@@ -608,7 +608,8 @@ if ($cfg['ShowStats']) {
if ($mergetable == false) {
list($index_size, $index_unit) = PMA_formatByteDown($showtable['Index_length'], $max_digits, $decimals);
}
if (isset($showtable['Data_free']) && $showtable['Data_free'] > 0) {
// InnoDB returns a huge value in Data_free, do not use it
if (! $is_innodb && isset($showtable['Data_free']) && $showtable['Data_free'] > 0) {
list($free_size, $free_unit) = PMA_formatByteDown($showtable['Data_free'], $max_digits, $decimals);
list($effect_size, $effect_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length'] - $showtable['Data_free'], $max_digits, $decimals);
} else {