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.51 by root, Fri Dec 18 03:49:46 2009 UTC vs.
Revision 1.52 by root, Thu Apr 22 12:50:24 2010 UTC

89 89
90 if ($map->last_access + $max_idle <= $cf::RUNTIME && !$map->players) { 90 if ($map->last_access + $max_idle <= $cf::RUNTIME && !$map->players) {
91 $map->swap_out; 91 $map->swap_out;
92 } elsif ($map->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { 92 } elsif ($map->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) {
93 $map->save; 93 $map->save;
94 $map->{last_save} -= rand; # randomise map save times a bit 94 $map->{last_save} -= cf::rndm; # randomise map save times a bit
95 } 95 }
96 } 96 }
97 }; 97 };
98 warn $@ if $@; 98 warn $@ if $@;
99 cf::cede_to_tick; 99 cf::cede_to_tick;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines