Merge branch 'master' of https://github.com/major/MySQLTuner-perl
This commit is contained in:
commit
42593c642c
1 changed files with 2 additions and 1 deletions
|
@ -1094,11 +1094,11 @@ sub get_os_release {
|
||||||
|
|
||||||
sub get_fs_info() {
|
sub get_fs_info() {
|
||||||
my @sinfo = `df -P | grep '%'`;
|
my @sinfo = `df -P | grep '%'`;
|
||||||
shift @sinfo;
|
|
||||||
my @iinfo = `df -Pi| grep '%'`;
|
my @iinfo = `df -Pi| grep '%'`;
|
||||||
shift @iinfo;
|
shift @iinfo;
|
||||||
map { s/.*\s(\d+)%\s+(.*)/$1\t$2/g } @sinfo;
|
map { s/.*\s(\d+)%\s+(.*)/$1\t$2/g } @sinfo;
|
||||||
foreach my $info (@sinfo) {
|
foreach my $info (@sinfo) {
|
||||||
|
next if $info =~ m{(\d+)\t/(run|dev|sys|proc)($|/)};
|
||||||
if ( $info =~ /(\d+)\t(.*)/ ) {
|
if ( $info =~ /(\d+)\t(.*)/ ) {
|
||||||
if ( $1 > 85 ) {
|
if ( $1 > 85 ) {
|
||||||
badprint "mount point $2 is using $1 % total space";
|
badprint "mount point $2 is using $1 % total space";
|
||||||
|
@ -1112,6 +1112,7 @@ sub get_fs_info() {
|
||||||
|
|
||||||
map { s/.*\s(\d+)%\s+(.*)/$1\t$2/g } @iinfo;
|
map { s/.*\s(\d+)%\s+(.*)/$1\t$2/g } @iinfo;
|
||||||
foreach my $info (@iinfo) {
|
foreach my $info (@iinfo) {
|
||||||
|
next if $info =~ m{(\d+)\t/(run|dev|sys|proc)($|/)};
|
||||||
if ( $info =~ /(\d+)\t(.*)/ ) {
|
if ( $info =~ /(\d+)\t(.*)/ ) {
|
||||||
if ( $1 > 85 ) {
|
if ( $1 > 85 ) {
|
||||||
badprint "mount point $2 is using $1 % of max allowed inodes";
|
badprint "mount point $2 is using $1 % of max allowed inodes";
|
||||||
|
|
Loading…
Reference in a new issue