Merge pull request #45 from altblue/master
improve "$arch" variable usage
This commit is contained in:
commit
2c69d953f8
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ sub mysql_stats {
|
||||||
|
|
||||||
# Memory usage
|
# Memory usage
|
||||||
infoprint "Total buffers: ".hr_bytes($mycalc{'server_buffers'})." global + ".hr_bytes($mycalc{'per_thread_buffers'})." per thread ($myvar{'max_connections'} max threads)\n";
|
infoprint "Total buffers: ".hr_bytes($mycalc{'server_buffers'})." global + ".hr_bytes($mycalc{'per_thread_buffers'})." per thread ($myvar{'max_connections'} max threads)\n";
|
||||||
if ($mycalc{'total_possible_used_memory'} > 2*1024*1024*1024 && $arch eq 32) {
|
if ($arch && $arch == 32 && $mycalc{'total_possible_used_memory'} > 2*1024*1024*1024) {
|
||||||
badprint "Allocating > 2GB RAM on 32-bit systems can cause system instability\n";
|
badprint "Allocating > 2GB RAM on 32-bit systems can cause system instability\n";
|
||||||
badprint "Maximum possible memory usage: ".hr_bytes($mycalc{'total_possible_used_memory'})." ($mycalc{'pct_physical_memory'}% of installed RAM)\n";
|
badprint "Maximum possible memory usage: ".hr_bytes($mycalc{'total_possible_used_memory'})." ($mycalc{'pct_physical_memory'}% of installed RAM)\n";
|
||||||
} elsif ($mycalc{'pct_physical_memory'} > 85) {
|
} elsif ($mycalc{'pct_physical_memory'} > 85) {
|
||||||
|
|
Loading…
Reference in a new issue