aboutsummaryrefslogtreecommitdiff
path: root/libs/liblo/patches/020-usleep.patch
blob: 2b138f602db95af67274c6990d25afd182c1c720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- 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);
     }