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.56 by root, Wed May 4 07:36:40 2011 UTC vs.
Revision 1.57 by root, Sat Aug 13 20:20:30 2011 UTC

57 57
58 while () { 58 while () {
59 if ($cf::LOADAVG > $SWAP_LOAD2) { 59 if ($cf::LOADAVG > $SWAP_LOAD2) {
60 cf::wait_for_tick; 60 cf::wait_for_tick;
61 } else { 61 } else {
62 Coro::EV::timer_once $SCHEDULE_INTERVAL; 62 Coro::AnyEvent::sleep $SCHEDULE_INTERVAL;
63 } 63 }
64 64
65 # this weird form of iteration over values is used because 65 # this weird form of iteration over values is used because
66 # the hash changes underneath us frequently, and 'for' 66 # the hash changes underneath us frequently, and 'for'
67 # keeps a direct reference to the value without (in 5.8 perls) 67 # keeps a direct reference to the value without (in 5.8 perls)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines