diff options
author | FRIGN <dev@frign.de> | 2014-10-05 20:08:55 +0200 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-10-05 19:09:32 +0100 |
commit | d8013df97d768878472acca26cc67c58b2b33b4f (patch) | |
tree | 42361891c55d6d573ebe3b2adda7dfc46638e553 | |
parent | 2714b1b140be5f35b1ac135b7e5035b85c03015e (diff) |
Fix units (us -> ms)
Got off a factor of a thousand, this would've never worked.
Now it should handle the calls properly.
-rw-r--r-- | ratox.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -600,8 +600,8 @@ sendfriendcalldata(struct friend *f) clock_gettime(CLOCK_MONOTONIC, &now); diff = timediff(f->av.lastsent, now); - if (diff.tv_nsec == 0 && diff.tv_nsec < toxavconfig.audio_frame_duration * 1000) { - diff.tv_nsec = toxavconfig.audio_frame_duration * 1000 - diff.tv_nsec; + if (diff.tv_nsec == 0 && diff.tv_nsec < toxavconfig.audio_frame_duration * 1E6) { + diff.tv_nsec = toxavconfig.audio_frame_duration * 1E6 - diff.tv_nsec; nanosleep(&diff, NULL); } f->av.lastsent = now; |