Skip to content

Commit

Permalink
Merge pull request #538 from grooverdan/json_total_tables
Browse files Browse the repository at this point in the history
Add total_tables to json output
  • Loading branch information
jmrenouard authored Jan 28, 2021
2 parents 374ef59 + 72952b5 commit 1f879d1
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 1f879d1

Please sign in to comment.