/[smeserver]/rpms/e-smith-base/sme9/e-smith-base-5.4.0-pppoeMlimit.patch
ViewVC logotype

Contents of /rpms/e-smith-base/sme9/e-smith-base-5.4.0-pppoeMlimit.patch

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


Revision 1.2 - (show annotations) (download)
Mon Mar 24 03:05:36 2014 UTC (10 years, 7 months ago) by wellsi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
* Sun Mar 23 2014 Ian Wells <esmith@wellsi.com> 5.6.0-1.sme
- Roll new stream to remove obsolete images [SME: 7962]

1 diff -urN e-smith-base-5.4.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit e-smith-base-5.4.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit
2 --- e-smith-base-5.4.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit 2013-01-31 07:52:04.000000000 -0800
3 +++ e-smith-base-5.4.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit 2013-02-21 15:22:02.000000000 -0800
4 @@ -1,5 +1,15 @@
5 {
6 -# memory limit to catch any memory leak before it kills the system
7 - my $mlimit = $pppoe{Mlimit} || '100000000';
8 - $OUT = "PPPD_MLIMIT=$mlimit";
9 + # 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 + delete $pppoe{Mlimit};
17 + }
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