aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy_global.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-17 20:18:58 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-17 20:18:58 -0500
commitd1027cb0205ced2b5056fa3739d962feec401130 (patch)
tree2bb477084d6a4631424c729596d01b7e0174cf9d /config/haproxy/haproxy_global.php
parent48e93b86be65289713a653a7ae3092928524e102 (diff)
downloadpfsense-packages-d1027cb0205ced2b5056fa3739d962feec401130.tar.gz
pfsense-packages-d1027cb0205ced2b5056fa3739d962feec401130.tar.bz2
pfsense-packages-d1027cb0205ced2b5056fa3739d962feec401130.zip
Unbreak current memory usage option
Diffstat (limited to 'config/haproxy/haproxy_global.php')
-rwxr-xr-xconfig/haproxy/haproxy_global.php4
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>