Re: [CODE] Scheduled rebooting.

From: George (greerga@circlemud.org)
Date: 01/04/99


On Mon, 4 Jan 1999, Jeremy Music wrote:

>Is there an easy way to do scheduled rebooting?  I know the mud stores the
>startup time, but seems to store it as a string, so doing any math on it
>(such as subtracting it from the current time) would be difficult...

Make 'circlemud_reboot' into a ticks-to-shutdown variable instead of a
true/false-I-should-shutdown variable.  Then just check in game_loop(),
decrement, and send message if you're on the time you want, using % just
like heartbeat() does.

--
George Greer
greerga@circlemud.org
http://www.circlemud.org/~greerga/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST