Discussion:
[PATCH] timeout and spectro/conv.c
Dominic Jänichen
2014-04-13 20:49:05 UTC
Permalink
Debugging timeout problems with a DTP-94 I noticed some time values to
be much to large due to a unsigned integer overflow in msec_time.
Please find attached a patch to correct a typo leading to this.

Dominic


--- a/spectro/conv.c 2014-04-12 13:15:16.499529081 +0200
+++ b/spectro/conv.c 2014-04-12 13:15:55.652173993 +0200
@@ -580,7 +580,7 @@
cv.tv_sec -= startup.tv_sec;
if (startup.tv_nsec > cv.tv_nsec) {
cv.tv_sec--;
- cv.tv_nsec += 100000000;
+ cv.tv_nsec += 1000000000;
}
cv.tv_nsec -= startup.tv_nsec;
Graeme Gill
2014-04-14 02:21:44 UTC
Permalink
Post by Dominic Jänichen
Debugging timeout problems with a DTP-94 I noticed some time values to
be much to large due to a unsigned integer overflow in msec_time.
Hi,
thanks - there are number of DT94 fixes lined up for the next release :-
see <http://www.argyllcms.com/Argyll_dev_src.zip>

Graeme Gill.

Loading...