issue #98 Fix variable name bug for 32 bits systems

This commit is contained in:
Jean-Marie RENOUARD 2015-08-18 13:47:18 +02:00
parent 9470d56e6a
commit 6d3e66415b

View file

@ -1142,7 +1142,7 @@ sub mysql_stats {
}
}
if ($arch && $arch == 32 && $mycalc{'total_possible_used_memory'} > 2*1024*1024*1024) {
if ($arch && $arch == 32 && $mycalc{'max_used_memory'} > 2*1024*1024*1024) {
badprint "Allocating > 2GB RAM on 32-bit systems can cause system instability\n";
badprint "Maximum reached memory usage: ".hr_bytes($mycalc{'max_used_memory'})." ($mycalc{'pct_max_used_memory'}% of installed RAM)\n";
} elsif ($mycalc{'pct_max_used_memory'} > 85) {