diff options
Diffstat (limited to 'config/haproxy/haproxy_global.php')
-rwxr-xr-x | config/haproxy/haproxy_global.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy/haproxy_global.php b/config/haproxy/haproxy_global.php index 6931f37d..7c646f2a 100755 --- a/config/haproxy/haproxy_global.php +++ b/config/haproxy/haproxy_global.php @@ -154,8 +154,8 @@ function enable_change(enable_change) { Sets the maximum per-process number of concurrent connections to X.<br/> <strong>NOTE:</strong> setting this value too high will result in haproxy not being able to allocate enough memory.<br/> <?php - $hapcpu = `top | grep haproxy | awk '{ print $6 }'`; - if($hapcpu) + $hascpu = trim(`top | grep haproxy | awk '{ print $6 }'`); + if($hascpu) echo "<p>Current memory usage {$hascpu}.</p>"; ?> </td><td> |