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

Comparing deliantra/server/ext/map-scheduler.ext (file contents):
Revision 1.55 by root, Fri May 14 22:56:47 2010 UTC vs.
Revision 1.56 by root, Wed May 4 07:36:40 2011 UTC

79# $map->deactivate; 79# $map->deactivate;
80# delete $map->{active}; 80# delete $map->{active};
81# } 81# }
82 if ($map->should_reset) { 82 if ($map->should_reset) {
83 $map->reset; 83 $map->reset;
84 } elsif ($map->in_memory == cf::MAP_ACTIVE) { 84 } elsif ($map->linkable) {
85 my $max_idle = cf::clamp +(cf::lerp $cf::LOADAVG, $SWAP_LOAD1, $SWAP_LOAD2, $SWAP_TIMEOUT, $cf::TICK * 1.5), 85 my $max_idle = cf::clamp +(cf::lerp $cf::LOADAVG, $SWAP_LOAD1, $SWAP_LOAD2, $SWAP_TIMEOUT, $cf::TICK * 1.5),
86 $cf::TICK * 1.5, $SWAP_TIMEOUT; 86 $cf::TICK * 1.5, $SWAP_TIMEOUT;
87 87
88 if ($map->last_access + $max_idle <= $cf::RUNTIME && !$map->players) { 88 if ($map->last_access + $max_idle <= $cf::RUNTIME && !$map->players) {
89 $map->swap_out; 89 $map->swap_out;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines