diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-11-17 20:18:58 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-11-17 20:18:58 -0500 |
commit | d1027cb0205ced2b5056fa3739d962feec401130 (patch) | |
tree | 2bb477084d6a4631424c729596d01b7e0174cf9d | |
parent | 48e93b86be65289713a653a7ae3092928524e102 (diff) | |
download | pfsense-packages-d1027cb0205ced2b5056fa3739d962feec401130.tar.gz pfsense-packages-d1027cb0205ced2b5056fa3739d962feec401130.tar.bz2 pfsense-packages-d1027cb0205ced2b5056fa3739d962feec401130.zip |
Unbreak current memory usage option
-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> |