Dominic Jänichen
2014-04-13 20:49:05 UTC
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;
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;