summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-20 22:12:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-20 22:12:00 +0000
commit44223dc412aa0d9944fe71a895ba78ddc1b9a98a (patch)
tree756a33c7c9ba0ca31259619e441cf60bd250d7e0 /etc/inc/captiveportal.inc
parentfadc03602b249784be6dc2f1b934d56b4a82353e (diff)
downloadpfsense-44223dc412aa0d9944fe71a895ba78ddc1b9a98a.zip
pfsense-44223dc412aa0d9944fe71a895ba78ddc1b9a98a.tar.gz
Round memory sizes down. Make consistent.
Ticket #540
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 977e0dc..ccee1d9 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -181,20 +181,20 @@ EOD;
$memory = get_memory();
$avail = $memory[0];
$use_fastcgi = true;
- if($avail > 0 and $avail < 65) {
+ if($avail > 0 and $avail < 60) {
$procs = 1;
$use_fastcgi = false;
- } else if($avail > 64 and $avail < 120) {
+ } else if($avail > 60 and $avail < 120) {
$procs = 2;
} else if($avail > 120 and $avail < 160) {
$procs = 3;
- } else if($avail > 164 and $avail < 256) {
+ } else if($avail > 160 and $avail < 250) {
$procs = 4;
- } else if($avail > 256 and $avail < 384) {
+ } else if($avail > 250 and $avail < 380) {
$procs = 5;
- } else if($avail > 384 and $avail < 512) {
+ } else if($avail > 380 and $avail < 500) {
$procs = 6;
- } else if($avail > 512 and $avail < 684) {
+ } else if($avail > 500 and $avail < 680) {
$procs = 7;
} else {
$procs = 1;
OpenPOWER on IntegriCloud