Skip to content

Commit fce4eda

Browse files
committed
Illegal division by zero #423
1 parent 4c14ba9 commit fce4eda

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

mysqltuner.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env perl
2-
# mysqltuner.pl - Version 1.7.14
2+
# mysqltuner.pl - Version 1.7.15
33
# High Performance MySQL Tuning Script
44
# Copyright (C) 2006-2018 Major Hayden - major@mhtx.net
55
#
@@ -56,7 +56,7 @@ package main;
5656
#use Env;
5757

5858
# Set up a few variables for use in the script
59-
my $tunerversion = "1.7.14";
59+
my $tunerversion = "1.7.15";
6060
my ( @adjvars, @generalrec );
6161

6262
# Set defaults
@@ -1097,7 +1097,7 @@ sub get_all_vars {
10971097
unless ( defined( $myvar{'innodb_support_xa'} ) ) {
10981098
$myvar{'innodb_support_xa'} = 'ON';
10991099
}
1100-
1100+
$mystat{'Uptime'} = 1 unless defined($mystat{'Uptime'}) and $mystat{'Uptime'}>0;
11011101
$myvar{'have_galera'} = "NO";
11021102
if ( defined( $myvar{'wsrep_provider_options'} )
11031103
&& $myvar{'wsrep_provider_options'} ne ""
@@ -6336,7 +6336,7 @@ sub which {
63366336
63376337
=head1 NAME
63386338
6339-
MySQLTuner 1.7.14 - MySQL High Performance Tuning Script
6339+
MySQLTuner 1.7.15 - MySQL High Performance Tuning Script
63406340
63416341
=head1 IMPORTANT USAGE GUIDELINES
63426342

0 commit comments

Comments
 (0)