mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Rename function to make it less ambiguous
This commit is contained in:
@@ -105,7 +105,7 @@ elsif (@titles || @indexes) {
|
||||
);
|
||||
if ($displayconfig{'style'} == 1) {
|
||||
# Show table names, fields and row counts
|
||||
my $tables_size = &get_tables_size($in{'db'});
|
||||
my $all_tables_size = &get_all_tables_size($in{'db'});
|
||||
foreach $t (@titles) {
|
||||
local $c = &execute_sql($in{'db'},
|
||||
"show create table ".quotestr($t));
|
||||
@@ -117,7 +117,7 @@ elsif (@titles || @indexes) {
|
||||
push(@rows, $c->{'data'}->[0]->[0]);
|
||||
local @str = &table_structure($in{'db'}, $t);
|
||||
push(@fields, scalar(@str));
|
||||
my $table_size = &get_table_size($tables_size, $t);
|
||||
my $table_size = &get_table_size($all_tables_size, $t);
|
||||
push(@sizes, &nice_size($table_size));
|
||||
}
|
||||
my $table_index_stats = &get_table_index_stats($in{'db'});
|
||||
|
||||
@@ -1349,9 +1349,9 @@ my $rs = &execute_sql_safe($db, $sql_query, $db, @tables);
|
||||
return $rs;
|
||||
}
|
||||
|
||||
# get_tables_size(db)
|
||||
# get_all_tables_size(db)
|
||||
# Retrieves the size of all tables in the given database
|
||||
sub get_tables_size
|
||||
sub get_all_tables_size
|
||||
{
|
||||
my ($db) = @_;
|
||||
my @tables = list_tables($db);
|
||||
|
||||
Reference in New Issue
Block a user