summaryrefslogtreecommitdiff
path: root/audio/rawrec/files/patch-sleep_on_motion.c
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-09-04 21:38:39 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-09-04 21:38:39 +0000
commitf328b7e454bc7eda7c53320eb3a0c66f7010cfb7 (patch)
tree7c886971e7d31ce0807bc663c65fb06a4ab869f9 /audio/rawrec/files/patch-sleep_on_motion.c
parentUpdate to 1.2.1 (diff)
- Update to version 0.9.98
- Bug fixes PR: 56460 Submitted by: Simon Barner <barner@in.tum.de>
Diffstat (limited to 'audio/rawrec/files/patch-sleep_on_motion.c')
-rw-r--r--audio/rawrec/files/patch-sleep_on_motion.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/rawrec/files/patch-sleep_on_motion.c b/audio/rawrec/files/patch-sleep_on_motion.c
new file mode 100644
index 000000000000..6646f808060e
--- /dev/null
+++ b/audio/rawrec/files/patch-sleep_on_motion.c
@@ -0,0 +1,11 @@
+--- sleep_on_option.c.orig Tue Jul 22 15:27:18 2003
++++ sleep_on_option.c Tue Jul 22 15:27:32 2003
+@@ -15,7 +15,7 @@
+
+ if ( time > samples / speed ) {
+ reqst.tv_sec = (time_t) floor(time);
+- reqst.tv_nsec = (long) nearbyint((time - floor(time)) * 1000000);
++ reqst.tv_nsec = (long) rint((time - floor(time)) * 1000000);
+ } else {
+ reqst.tv_sec = (time_t) floor(samples / speed);
+ reqst.tv_nsec = (long) rint((samples / speed - floor(samples / speed))