ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/checkrusage.ext
(Generate patch)

Comparing deliantra/server/ext/checkrusage.ext (file contents):
Revision 1.2 by root, Thu Jan 25 03:55:01 2007 UTC vs.
Revision 1.3 by root, Thu Jan 25 03:56:48 2007 UTC

18 or return; 18 or return;
19 19
20 sysread $fh, my $stat, 4096; # only a single line 20 sysread $fh, my $stat, 4096; # only a single line
21 my $vmsize = (split / /, $stat)[22]; 21 my $vmsize = (split / /, $stat)[22];
22 22
23 cf::cleanup "memory usage growing high, server would run out of memory soon", 0 if $vmsize >= $MAX_VMSIZE; 23 cf::cleanup "memory usage growing high, server would run out of memory soon", 0
24 if $vmsize >= $MAX_VMSIZE;
24 }, 25 },
25); 26);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines