Browse Source

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

pull/2407/head
Michael Vogel 6 years ago
parent
commit
2718c8150f
  1. 2
      include/cron.php

2
include/cron.php

@ -357,7 +357,7 @@ function cron_clear_cache(&$a) {
continue;
// 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);

Loading…
Cancel
Save