--- deliantra/server/ext/map-scheduler.ext 2007/07/23 17:53:55 1.38 +++ deliantra/server/ext/map-scheduler.ext 2007/07/28 13:13:36 1.39 @@ -11,6 +11,9 @@ our $SWAP_LOAD1 = $cf::CFG{swap_load1} || .1; # start aggressively swapping at this load our $SWAP_LOAD2 = $cf::CFG{swap_load2} || .4; # swap as fast as possible at this load +warn "load1 ", $SWAP_LOAD1;#d# +warn "load2 ", $SWAP_LOAD2;#d# + cf::async_ext { $Coro::current->prio (Coro::PRIO_MIN); @@ -84,6 +87,7 @@ $map->swap_out; } elsif ($map->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { $map->save; + $map->{last_save} -= rand; # randomise map save times a bit } } };