Skip to content

Commit e8ecc98

Browse files
committed
Generate 2.4.0 minor version at 2023-11-30T11:35:00+01:00
1 parent da6dabc commit e8ecc98

2 files changed

Lines changed: 13 additions & 15 deletions

File tree

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NAME
22

3-
MySQLTuner 2.3.2 - MySQL High Performance Tuning Script
3+
MySQLTuner 2.4.0 - MySQL High Performance Tuning Script
44

55
# IMPORTANT USAGE GUIDELINES
66

mysqltuner.pl

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env perl
2-
# mysqltuner.pl - Version 2.3.2
2+
# mysqltuner.pl - Version 2.4.0
33
# High Performance MySQL Tuning Script
44
# Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com
55
# Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
@@ -57,7 +57,7 @@ package main;
5757
#use Env;
5858

5959
# Set up a few variables for use in the script
60-
my $tunerversion = "2.3.2";
60+
my $tunerversion = "2.4.0";
6161
my ( @adjvars, @generalrec );
6262

6363
# Set defaults
@@ -2526,7 +2526,7 @@ sub check_architecture {
25262526
}
25272527
elsif ( `uname` =~ /Darwin/ && `uname -m` =~ /x86_64/ ) {
25282528

2529-
# Darwin gibas.local 12.3.2 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
2529+
# Darwin gibas.local 12.4.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
25302530
$arch = 64;
25312531
goodprint "Operating on 64-bit architecture";
25322532
}
@@ -3179,11 +3179,11 @@ sub calculations {
31793179
= ( 1, 1 )
31803180
unless defined $mystat{'Innodb_buffer_pool_reads'};
31813181
$mycalc{'pct_read_efficiency'} = percentage(
3182-
(
3183-
$mystat{'Innodb_buffer_pool_read_requests'} -
3182+
$mystat{'Innodb_buffer_pool_read_requests'},
3183+
(
3184+
$mystat{'Innodb_buffer_pool_read_requests'} +
31843185
$mystat{'Innodb_buffer_pool_reads'}
3185-
),
3186-
$mystat{'Innodb_buffer_pool_read_requests'}
3186+
)
31873187
) if defined $mystat{'Innodb_buffer_pool_read_requests'};
31883188
debugprint "pct_read_efficiency: " . $mycalc{'pct_read_efficiency'} . "";
31893189
debugprint "Innodb_buffer_pool_reads: "
@@ -6513,19 +6513,17 @@ sub mysql_innodb {
65136513
{
65146514
badprint "InnoDB Read buffer efficiency: "
65156515
. $mycalc{'pct_read_efficiency'} . "% ("
6516-
. ( $mystat{'Innodb_buffer_pool_read_requests'} -
6517-
$mystat{'Innodb_buffer_pool_reads'} )
6518-
. " hits / "
65196516
. $mystat{'Innodb_buffer_pool_read_requests'}
6517+
. " hits / "
6518+
. ( $mystat{'Innodb_buffer_pool_reads'} + $mystat{'Innodb_buffer_pool_read_requests'} )
65206519
. " total)";
65216520
}
65226521
else {
65236522
goodprint "InnoDB Read buffer efficiency: "
65246523
. $mycalc{'pct_read_efficiency'} . "% ("
6525-
. ( $mystat{'Innodb_buffer_pool_read_requests'} -
6526-
$mystat{'Innodb_buffer_pool_reads'} )
6527-
. " hits / "
65286524
. $mystat{'Innodb_buffer_pool_read_requests'}
6525+
. " hits / "
6526+
. ( $mystat{'Innodb_buffer_pool_reads'} + $mystat{'Innodb_buffer_pool_read_requests'} )
65296527
. " total)";
65306528
}
65316529

@@ -7369,7 +7367,7 @@ sub which {
73697367
73707368
=head1 NAME
73717369
7372-
MySQLTuner 2.3.2 - MySQL High Performance Tuning Script
7370+
MySQLTuner 2.4.0 - MySQL High Performance Tuning Script
73737371
73747372
=head1 IMPORTANT USAGE GUIDELINES
73757373

0 commit comments

Comments
 (0)