Re: [LONG]Strange Loop

From: Benjamin Draper (satrycus@drachenburg.demon.co.uk)
Date: 05/20/00


 Thank you Chris!

 You're spot on with null_time being the problem. I'm not sure how,
whether it's through select, or an overrun, it doesn't stay at 0 for
very long. I took your advice and now have:

>     do {
        null_time.tv_sec = 0;
        null_time.tv_usec = 0;
>       circle_sleep(&timeout);
>       gettimeofday(&now, (struct timezone *) 0);
>       timediff(&timeout, &last_time, &now);
>     } while (timeout.tv_usec || timeout.tv_sec);
>

 My tests were done using stock Circle30bpl16, so the only changes were
the debug output, so perhaps your little addition should make it into
bpl18? George?

Thanks again!

-> Ben


     +------------------------------------------------------------+
     | 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 : 04/10/01 PDT