Fix coap_ticks platforms with no _POSIX_TIMERS

(cherry picked from commit bde305210e)
This commit is contained in:
franc0is authored and Olaf Bergmann committed 2015-09-09 14:04:44 +02:00
1 parent 7f2134db6f
commit 11daf0545a
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ coap_ticks(coap_tick_t *t) {
* Both cases should not be possible here.
*/
tmp = tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0));
tmp = SHR_FP(tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)), FRAC);
#endif /* not _POSIX_TIMERS */
/* Finally, convert temporary FP representation to multiple of