// give some processing time to the logfile system so it can check up on stuff void multi_log_process() { // check to see if we've been active a long enough time, and if(time(NULL) - Multi_log_update_systime > MULTI_LOGFILE_UPDATE_TIME){ // write the update multi_log_write_update(); Multi_log_update_systime = (int) time(NULL); } }
// give some processing time to the logfile system so it can check up on stuff void multi_log_process() { // if we don't have a valid logfile, do nothing if(Multi_log_out == NULL){ return; } // check to see if we've been active a long enough time, and if(time(NULL) - Multi_log_update_systime > MULTI_LOGFILE_UPDATE_TIME){ // write the update multi_log_write_update(); Multi_log_update_systime = time(NULL); } }