Skip to content

Commit

Permalink
Merge pull request #1 from major/master
Browse files Browse the repository at this point in the history
Innodb_log_writes = 0  wrong display
  • Loading branch information
jmrenouard committed Apr 25, 2023
2 parents 29ad424 + fbbdb42 commit e810886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ reports_*
golang/prog-*
.vscode
test_db/**
result*
result_*
2 changes: 1 addition & 1 deletion mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6170,7 +6170,7 @@ sub mysql_innodb {
$mystat{'Innodb_log_waits_computed'} = 0;
if ( defined( $mystat{'Innodb_log_waits'} )
and defined( $mystat{'Innodb_log_writes'} ) )
and defined( $mystat{'Innodb_log_writes'} ) and $mystat{'Innodb_log_writes'} > 0.000001 )
{
$mystat{'Innodb_log_waits_computed'} =
$mystat{'Innodb_log_waits'} / $mystat{'Innodb_log_writes'};
Expand Down

0 comments on commit e810886

Please sign in to comment.