diff --git a/db_stats.php3 b/db_stats.php3 index b5cd00fac..ce22cb437 100644 --- a/db_stats.php3 +++ b/db_stats.php3 @@ -91,27 +91,25 @@ header('Content-Type: text/html; charset=' . $charset); - + - - - - - - - - +
   - ASC - -         
+ + + + + + + 1) { - $selected_db = 0; - $tot_tables = 0; - $big_tot_all = 0; - $big_tot_idx = 0; - $big_tot_data = 0; + $selected_db = 0; + $tot_tables = 0; + $big_tot_all = 0; + $big_tot_idx = 0; + $big_tot_data = 0; $results_array = array(); // Gets and displays the tables stats per database @@ -142,11 +140,10 @@ if ($num_dbs > 1) { $tot_data += $row['Data_length']; $tot_idx += $row['Index_length']; } - - $tot_all = $tot_data + $tot_idx; - $big_tot_all += $tot_all; - $big_tot_idx += $tot_idx; - $big_tot_data += $tot_data; + $tot_all = $tot_data + $tot_idx; + $big_tot_all += $tot_all; + $big_tot_idx += $tot_idx; + $big_tot_data += $tot_data; $results_array[$db] = $tot_all; } @@ -154,13 +151,13 @@ if ($num_dbs > 1) { list($tot_idx_format,$unit_idx) = format_byte_down($tot_idx,3,1); list($tot_all_format,$unit_all) = format_byte_down($tot_all,3,1); - echo '' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo '' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; } // end for // Gets and displays the server stats @@ -168,66 +165,70 @@ if ($num_dbs > 1) { list($tot_idx_format,$unit_idx) = format_byte_down($big_tot_idx,3,1); list($tot_all_format,$unit_all) = format_byte_down($big_tot_all,3,1); - echo '' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo '' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; - echo '
   + ASC        
 ' . urlencode($db) . '  ' . $num_tables . '  ' . $tot_data_format . ' ' . $unit_data . '  ' . $tot_idx_format . ' ' . $unit_idx . '  ' . $tot_all_format . ' ' . $unit_all . ' 
 ' . urlencode($db) . '  ' . $num_tables . '  ' . $tot_data_format . ' ' . $unit_data . '  ' . $tot_idx_format . ' ' . $unit_idx . '  ' . $tot_all_format . ' ' . $unit_all . ' 
 ' . $strSum . '  ' . $tot_tables . '  ' . $tot_data_format . ' ' . $unit_data . '  ' . $tot_idx_format . ' ' . $unit_idx . '  ' . $tot_all_format . ' ' . $unit_all . ' 
 ' . $strSum . '  ' . $tot_tables . '  ' . $tot_data_format . ' ' . $unit_data . '  ' . $tot_idx_format . ' ' . $unit_idx . '  ' . $tot_all_format . ' ' . $unit_all . ' 
' . "\n"; - - // Display 20 biggest db's + echo ' ' . "\n"; + // Displays 20 biggest db's ?> - +       + - - - - - - - - - +
       - ASC -   -
+ + + + + ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo ' ' . "\n"; - echo '' . "\n"; + list($disp_val, $unit) = format_byte_down($val, 3, 1); + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; + echo ' ' . "\n"; } + ?> +
       + ASC 
 ' . $j . '  ' . urlencode($key) . '  ' . $disp_val . ' ' . $unit . ' 
 ' . $j . '  ' . urlencode($key) . '  ' . $disp_val . ' ' . $unit . ' 
+ - echo '' . "\n"; - echo ''; - + + + ' . "\n"; - echo '

  ' . $strNoDatabases . '

'; + echo "\n"; + ?> + + + + + + +

  

+