You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
737 B

--- a/src/tools/oscsendfile.c
+++ b/src/tools/oscsendfile.c
@@ -354,7 +354,7 @@ int send_file(lo_address target, double
lo_timetag_now(&tt_now);
double wait_time = timetag_diff(*tt_last, tt_now);
if (wait_time > 0.) {
- usleep(wait_time * 1000000);
+ sleep(wait_time);
}
if (b) {
ret = lo_send_bundle(target, b);
@@ -376,7 +376,7 @@ int send_file(lo_address target, double
lo_timetag_now(&tt_now);
double wait_time = timetag_diff(*tt_last, tt_now);
if (wait_time > 0.) {
- usleep(wait_time * 1000000);
+ sleep(wait_time);
}
lo_send_bundle(target, b);
}