The table optimisation level calculation is now using the index size as well

This commit is contained in:
Michael Vogel 2016-03-11 20:32:22 +01:00
parent a28d44a9ba
commit 2718c8150f
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ function cron_clear_cache(&$a) {
continue; continue;
// Calculate fragmentation // Calculate fragmentation
$fragmentation = $table["Data_free"] / $table["Data_length"]; $fragmentation = $table["Data_free"] / ($table["Data_length"] + $table["Index_length"]);
logger("Table ".$table["Name"]." - Fragmentation level: ".round($fragmentation * 100, 2), LOGGER_DEBUG); logger("Table ".$table["Name"]." - Fragmentation level: ".round($fragmentation * 100, 2), LOGGER_DEBUG);