Merge pull request #618 from lewart3/get_pf_memory
Fix #616 get_pf_memory() returns bogus value
This commit is contained in:
commit
de2b2be92c
1 changed files with 2 additions and 2 deletions
|
@ -3881,9 +3881,9 @@ sub get_pf_memory {
|
|||
return 0 unless defined $myvar{'performance_schema'};
|
||||
return 0 if $myvar{'performance_schema'} eq 'OFF';
|
||||
|
||||
my @infoPFSMemory = grep /performance_schema.memory/,
|
||||
my @infoPFSMemory = grep { /\tperformance_schema[.]memory\t/msx }
|
||||
select_array("SHOW ENGINE PERFORMANCE_SCHEMA STATUS");
|
||||
return 0 if scalar(@infoPFSMemory) == 0;
|
||||
@infoPFSMemory == 1 || return 0;
|
||||
$infoPFSMemory[0] =~ s/.*\s+(\d+)$/$1/g;
|
||||
return $infoPFSMemory[0];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue