diff options
author | Ermal <eri@pfsense.org> | 2013-01-05 16:33:16 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-05 16:40:57 +0000 |
commit | 7ba99a6c441cd5b4b0d4aa1e802266e16d52e1ec (patch) | |
tree | abd1829ddb37b62caa0df3681807db96c5a51a4b /etc/rc.php_ini_setup | |
parent | 4c45712f915ce24aa93c3c437add1956f3916d54 (diff) | |
download | pfsense-7ba99a6c441cd5b4b0d4aa1e802266e16d52e1ec.zip pfsense-7ba99a6c441cd5b4b0d4aa1e802266e16d52e1ec.tar.gz |
Make a bit more sense and consistent with when apc is enabled
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-x | etc/rc.php_ini_setup | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 31ec24b..b6c2396 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -48,11 +48,8 @@ fi # Calculate APC SHM size according # to detected memory values -if [ "$AVAILMEM" -le "128" ]; then - APCSHMEMSIZE="5M" -fi -if [ "$AVAILMEM" -gt "128" ]; then - APCSHMEMSIZE="15M" +if [ "$AVAILMEM" -gt "135" ]; then + APCSHMEMSIZE="10M" fi if [ "$AVAILMEM" -gt "256" ]; then APCSHMEMSIZE="20M" @@ -64,7 +61,7 @@ if [ "$AVAILMEM" -gt "512" ]; then APCSHMEMSIZE="30M" fi if [ "$AVAILMEM" -gt "784" ]; then - APCSHMEMSIZE="35M" + APCSHMEMSIZE="50M" fi # Set upload directory |