Merge pull request #611 from kochetovd/issues_607

Update mysqltuner.pl
This commit is contained in:
Jean-Marie Renouard 2022-09-13 15:11:10 +02:00 committed by GitHub
commit 335e12aa9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1019,7 +1019,7 @@ sub select_array {
sub human_size {
my ( $size, $n ) = ( shift, 0 );
++$n and $size /= 1024 until $size < 1024;
return sprintf "%.2f %s", $size, (qw[ bytes KB MB GB ])[$n];
return sprintf "%.2f %s", $size, (qw[ bytes KB MB GB TB ])[$n];
}
# MySQL Request one