Re: [mp2] Apache2::SizeLimit should be using $s->rss, not $s->size for Linux::Smaps
Fred Moyer <[email protected]>
| Newsgroups | gmane.comp.java.ofbiz.devel,gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <AANLkTinf6R1yLRb=m3xt6eh-3+JSVPURS3cUq196jtdj__28765.4840889902$1297302200$gmane$org@mail.gmail.com> |
On Wed, Feb 9, 2011 at 5:24 PM, Max Kanat-Alexander <[email protected]> wrote: > On 02/02/2010 02:19 PM, Fred Moyer wrote: >> Can you submit these patches inline? > > Here is the patch inline: Thanks - expect 0.96 in the next day. > > Index: lib/Apache/SizeLimit/Core.pm > =================================================================== > --- lib/Apache/SizeLimit/Core.pm (revision 905815) > +++ lib/Apache/SizeLimit/Core.pm (working copy) > @@ -175,7 +175,7 @@ > return $class->_linux_size_check() unless $USE_SMAPS; > > my $s = Linux::Smaps->new($$)->all; > - return ($s->size, $s->shared_clean + $s->shared_dirty); > + return ($s->rss, $s->shared_clean + $s->shared_dirty); > } > > sub _linux_size_check { >