--- deliantra/server/ext/checkrusage.ext 2007/01/25 03:55:01 1.2 +++ deliantra/server/ext/checkrusage.ext 2007/01/27 00:14:03 1.4 @@ -2,8 +2,6 @@ # restart server when certain resource limits are exceeded -use Unix::Getrusage; - our $MAX_VMSIZE = $cf::CFG{checkrusage}{vmsize} || 1_000_000_000; $^O eq "linux" or die "only linux supported right now.\n"; @@ -20,6 +18,7 @@ sysread $fh, my $stat, 4096; # only a single line my $vmsize = (split / /, $stat)[22]; - cf::cleanup "memory usage growing high, server would run out of memory soon", 0 if $vmsize >= $MAX_VMSIZE; + cf::cleanup "memory usage growing high, server would run out of memory soon", 0 + if $vmsize >= $MAX_VMSIZE; }, );