fix disfigurement if table size 0 Bytes
This commit is contained in:
@@ -9,6 +9,7 @@ $Source$
|
||||
* tbl_properties.php3: fix division by zero error
|
||||
* tbl_change.php3: enlarge binary protection to (var)char binary
|
||||
types
|
||||
* db_details.php3: fix disfigurement if table size 0 Bytes
|
||||
|
||||
2001-07-09 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* header.inc.php3: cosmetic changes.
|
||||
|
@@ -121,7 +121,8 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) {
|
||||
$tblsize = $sts_data['Data_length'] + $sts_data['Index_length'];
|
||||
$sum_size += $tblsize;
|
||||
$sum_entries += $sts_data['Rows'];
|
||||
list($formated_size, $unit) = format_byte_down($tblsize, 3, 1);
|
||||
if ($tblsize>0) list($formated_size, $unit) = format_byte_down($tblsize, 3, 1);
|
||||
else list($formated_size, $unit) = format_byte_down($tblsize, 3, 0);
|
||||
?>
|
||||
<td align="right">
|
||||
<?php echo number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>
|
||||
|
Reference in New Issue
Block a user