Rename function to make it less ambiguous

This commit is contained in:
Jamie Cameron
2025-02-02 14:43:24 -08:00
parent a3bce3d1aa
commit 54a9dcb75f
2 changed files with 4 additions and 4 deletions

View File

@@ -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'});

View File

@@ -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);