Use owl_msleep() everywhere
This commit is contained in:
parent
98609d146d
commit
a3c16211c2
|
@ -88,7 +88,7 @@ void owl_send_request(const int sockfd,
|
|||
// Transmit remaining packets (if any):
|
||||
for (i = 0 ; i < nb_pkt - 1 ; ++i)
|
||||
{
|
||||
usleep(delay * 1000) ; // Wait during the wanted delay
|
||||
owl_msleep(delay) ; // Wait during the wanted delay
|
||||
owl_send_packet(sockfd, server, packet, packet_size) ;
|
||||
}
|
||||
|
||||
|
|
|
@ -711,7 +711,7 @@ void* monitor_requests(void *NULL_value)
|
|||
|
||||
fflush(NULL) ;
|
||||
// Wait to check again:
|
||||
usleep(cfg_getint(cfg, "check_interval") * 1000) ;
|
||||
owl_msleep(cfg_getint(cfg, "check_interval")) ;
|
||||
}
|
||||
|
||||
/* Close output file & socket */
|
||||
|
@ -1077,7 +1077,7 @@ void* monitor_aps(void *NULL_value)
|
|||
}
|
||||
sem_post(&lock_aps) ;
|
||||
|
||||
usleep(cfg_getint(cfg, "ap_check_interval") * 1000) ;
|
||||
owl_msleep(cfg_getint(cfg, "ap_check_interval")) ;
|
||||
}
|
||||
|
||||
pthread_exit(NULL_value) ;
|
||||
|
|
|
@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
send_request() ;
|
||||
if (options.flood_delay >= 0 && owl_run)
|
||||
usleep(options.flood_delay * 1000) ;
|
||||
owl_msleep(options.flood_delay) ;
|
||||
}
|
||||
|
||||
close(sockfd) ;
|
||||
|
|
Loading…
Reference in New Issue