mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-15 04:39:42 +03:00
Fix coap_ticks platforms with no _POSIX_TIMERS
(cherry picked from commit bde305210e)
This commit is contained in:
1 parent
7f2134db6f
commit
11daf0545a
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user