Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gettimeofday() path calculates time wrong #9

Closed
franc0is opened this issue Sep 9, 2015 · 1 comment
Closed

gettimeofday() path calculates time wrong #9

franc0is opened this issue Sep 9, 2015 · 1 comment

Comments

@franc0is
Copy link
Contributor

franc0is commented Sep 9, 2015

tmp = tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0));
should be
tmp = SHR_FP(tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)), FRAC);

The code was fixed for linux but not for platforms that do not have clock_get_time

A commit to fix it is at franc0is@bde3052

@obgm
Copy link
Owner

obgm commented Sep 10, 2015

Thanks, I have cherry-picked from there.

@obgm obgm closed this as completed Sep 10, 2015
mrdeep1 added a commit to mrdeep1/libcoap that referenced this issue Dec 9, 2022
Use new coap_log_debug() etc. in OSCORE specific code.
mrdeep1 added a commit to mrdeep1/libcoap that referenced this issue Dec 13, 2022
Use new coap_log_debug() etc. in OSCORE specific code.
mrdeep1 added a commit to mrdeep1/libcoap that referenced this issue Dec 17, 2022
Use new coap_log_debug() etc. in OSCORE specific code.
mrdeep1 added a commit to mrdeep1/libcoap that referenced this issue Dec 20, 2022
Use new coap_log_debug() etc. in OSCORE specific code.
mrdeep1 added a commit to mrdeep1/libcoap that referenced this issue Dec 30, 2022
Use new coap_log_debug() etc. in OSCORE specific code.
mrdeep1 added a commit to mrdeep1/libcoap that referenced this issue Jan 2, 2023
Use new coap_log_debug() etc. in OSCORE specific code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants