diff --git a/db_details.php3 b/db_details.php3
index 348a743a3..235d52352 100755
--- a/db_details.php3
+++ b/db_details.php3
@@ -129,42 +129,44 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) {
0) {
- list($formated_size, $unit) = format_byte_down($tblsize, 3, 1);
- } else {
- list($formated_size, $unit) = format_byte_down($tblsize, 3, 0);
+ $mergetable = FALSE;
+ if (isset($sts_data['Type']) && $sts_data['Type'] == 'MRG_MyISAM') {
+ $mergetable = TRUE;
+ }
+ if (isset($sts_data['Rows'])) {
+ if ($mergetable == FALSE) {
+ $tblsize = $sts_data['Data_length'] + $sts_data['Index_length'];
+ $sum_size += $tblsize;
+ $sum_entries += $sts_data['Rows'];
+ if ($tblsize > 0) {
+ list($formated_size, $unit) = format_byte_down($tblsize, 3, 1);
+ } else {
+ list($formated_size, $unit) = format_byte_down($tblsize, 3, 0);
+ }
+ }
+ // MyISAM MERGE Table
+ else if ($mergetable == TRUE) {
+ $formated_size = ' - ';
+ $unit = '';
+ }
+ else {
+ $formated_size = 'unknown';
+ $unit = '';
}
- }
- else if ($mergetable == true) // MyISAM MERGE Table
- {
- $formated_size=" - ";
- $unit="";
- }
- else
- {
- $formated_size="unknown";
- $unit="";
- }
?>
- ";
- echo number_format($sts_data['Rows'], 0, $number_decimal_separator,
- $number_thousands_separator) . "\n";
- if ($mergetable == true) echo "";
- ?>
+ ' . number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . '' . "\n";
+ } else {
+ echo number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . "\n";
+ }
+ ?>
|
-
+
|
phpMyAdmin -
-