Skip to content

Commit 72952b5

Browse files
committed
Add total_tables to json output
closes #484
1 parent 2999446 commit 72952b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mysqltuner.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,6 +3254,7 @@ sub mysql_stats {
32543254

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

0 commit comments

Comments
 (0)