Skip to content

Commit

Permalink
Merge branch 'major:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrenouard authored Oct 2, 2024
2 parents 82d1155 + 70750a4 commit 33c59b8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3179,10 +3179,16 @@ sub calculations {
$myvar{"innodb_buffer_pool_instances"} = 1
unless defined( $myvar{'innodb_buffer_pool_instances'} );
if ( $myvar{'have_innodb'} eq "YES" ) {
$mycalc{'innodb_log_size_pct'} =
( $myvar{'innodb_log_file_size'} *
$myvar{'innodb_log_files_in_group'} * 100 /
$myvar{'innodb_buffer_pool_size'} );
if ( defined $myvar{'innodb_redo_log_capacity'} ) {
$mycalc{'innodb_log_size_pct'} =
( $myvar{'innodb_redo_log_capacity'} /
$myvar{'innodb_buffer_pool_size'} ) * 100;
} else {
$mycalc{'innodb_log_size_pct'} =
( $myvar{'innodb_log_file_size'} *
$myvar{'innodb_log_files_in_group'} * 100 /
$myvar{'innodb_buffer_pool_size'} );
}
}
if ( !defined $myvar{'innodb_buffer_pool_size'} ) {
$mycalc{'innodb_log_size_pct'} = 0;
Expand Down

0 comments on commit 33c59b8

Please sign in to comment.