From f7f27545040d0fc45442b2fbbca0e53815a22584 Mon Sep 17 00:00:00 2001 From: Jean-Marie RENOUARD Date: Wed, 2 Sep 2015 14:48:48 +0200 Subject: [PATCH] Issue #121: setting value when value is NULL --- mysqltuner.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysqltuner.pl b/mysqltuner.pl index 433013d..a43b166 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1619,7 +1619,10 @@ sub check_storage_engines { # Parse through the table list to generate storage engine counts/statistics $fragtables = 0; foreach my $tbl (@tblist) { + debugprint "Data dump ". Dumper (@$tbl); my ( $engine, $size, $datafree ) = @$tbl; + $size=0 if $size eq 'NULL'; + $datafree=0 if $datafree eq 'NULL'; if ( defined $enginestats{$engine} ) { $enginestats{$engine} += $size; $enginecount{$engine} += 1;