Merge remote-tracking branch 'upstream/develop' into 1602-diaspora
This commit is contained in:
commit
a0aeea4a89
5 changed files with 19 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue