/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-5.2.0-pppoeMlimit.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme8/e-smith-base-5.2.0-pppoeMlimit.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Tue Feb 5 05:29:24 2013 UTC (11 years, 8 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-base-5_2_0-71_el5_sme, e-smith-base-5_2_0-77_el5_sme, e-smith-base-5_2_0-78_el5_sme, e-smith-base-5_2_0-86_el5_sme, e-smith-base-5_2_0-76_el5_sme, e-smith-base-5_2_0-84_el5_sme, e-smith-base-5_2_0-88_el5_sme, e-smith-base-5_2_0-81_el5_sme, e-smith-base-5_2_0-82_el5_sme, e-smith-base-5_2_0-89_el5_sme, e-smith-base-5_2_0-90_el5_sme, e-smith-base-5_2_0-87_el5_sme, e-smith-base-5_2_0-80_el5_sme, e-smith-base-5_2_0-70_el5_sme, e-smith-base-5_2_0-85_el5_sme, e-smith-base-5_2_0-79_el5_sme, e-smith-base-5_2_0-72_el5_sme, e-smith-base-5_2_0-75_el5_sme, e-smith-base-5_2_0-73_el5_sme, e-smith-base-5_2_0-74_el5_sme, e-smith-base-5_2_0-83_el5_sme
Changes since 1.3: +2 -1 lines
* Mon Feb 4 2013 Ian Wells <esmith@wellsi.com> 5.2.0-70.sme
- Correction for when DB value is lower than MIN_MEMORY_LIMIT [SME: 7000]

1 wellsi 1.1 diff -ruN e-smith-base-5.2.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit e-smith-base-5.2.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit
2     --- e-smith-base-5.2.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit 2007-01-27 01:56:31.000000000 +0000
3 wellsi 1.3 +++ e-smith-base-5.2.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit 2013-01-31 01:23:21.000000000 +0000
4 wellsi 1.4 @@ -1,5 +1,15 @@
5 wellsi 1.3 {
6 wellsi 1.2 -# memory limit to catch any memory leak before it kills the system
7 wellsi 1.1 - my $mlimit = $pppoe{Mlimit} || '25000000';
8 wellsi 1.2 - $OUT = "PPPD_MLIMIT=$mlimit";
9 wellsi 1.3 + # memory limit to catch any memory leak before it kills the system
10     + use constant MIN_MEMORY_LIMIT => 100000000;
11     +
12     + # If there is a memory limit in the database and it is below the minimum, delete it.
13     + if (defined $pppoe{Mlimit} && $pppoe{Mlimit} < MIN_MEMORY_LIMIT)
14     + {
15     + $DB->get_prop_and_delete('pppoe','Mlimit');
16 wellsi 1.4 + delete $pppoe{Mlimit};
17 wellsi 1.3 + }
18     +
19     + $OUT = "PPPD_MLIMIT=";
20     + $OUT .= $pppoe{Mlimit} || MIN_MEMORY_LIMIT;
21     }
22     +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed