Re: ChangeLog Entry: Saving MUD time

From: George Greer (greerga@circlemud.org)
Date: 06/20/01


On Wed, 20 Jun 2001, Zeavon Calatin wrote:

>void save_time_to_disk(void)
>{
>  FILE *f;
>
>  f = fopen("etc/date", "w");
>  fwrite(&time_info, sizeof(time_info_data), 1, f);
>  fclose(f);
>}

I very deliberately used fprintf()/fscanf().  We want _fewer_ binary files,
not more.

I suppose the heartbeat() idea is a good one, more so for crashing than
copyover.  Copyover would simply restart after saving the time at the end.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST