Merge pull request #2407 from annando/1603-optimize-table

The table optimisation level calculation is now also using the index size
pull/2410/head
Tobias Diekershoff 2016-03-12 07:28:44 +01:00
commit 02d14eafda
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);