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
755 B

  1. --- a/src/tools/oscsendfile.c
  2. +++ b/src/tools/oscsendfile.c
  3. @@ -354,7 +354,7 @@ int send_file(lo_address target, double speed) {
  4. lo_timetag_now(&tt_now);
  5. double wait_time = timetag_diff(*tt_last, tt_now);
  6. if (wait_time > 0.) {
  7. - usleep(wait_time * 1000000);
  8. + sleep(wait_time);
  9. }
  10. if (b) {
  11. ret = lo_send_bundle(target, b);
  12. @@ -376,7 +376,7 @@ int send_file(lo_address target, double speed) {
  13. lo_timetag_now(&tt_now);
  14. double wait_time = timetag_diff(*tt_last, tt_now);
  15. if (wait_time > 0.) {
  16. - usleep(wait_time * 1000000);
  17. + sleep(wait_time);
  18. }
  19. lo_send_bundle(target, b);
  20. }