Skip to content

Commit

Permalink
Add total_tables to json output
Browse files Browse the repository at this point in the history
closes #484
  • Loading branch information
grooverdan committed Jan 28, 2021
1 parent 2999446 commit 72952b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3254,6 +3254,7 @@ sub mysql_stats {

# Table definition cache
my $nbtables=select_one('SELECT COUNT(*) FROM information_schema.tables');
$mycalc{'total_tables'} = $nbtables;
if ( defined $myvar{'table_definition_cache'} ) {
if ( $myvar{'table_definition_cache'} == -1 ) {
infoprint ("table_definition_cache(".$myvar{'table_definition_cache'} .") is in autosizing mode");
Expand Down

0 comments on commit 72952b5

Please sign in to comment.