Skip to content

Query response time inaccurate sometimes #1

Description

@ciprianpop3scu

The response time in the results is sometime over 120000ms, which is not correct. I think it has to do with the folowing lines:

braa/queries.c

Lines 541 to 542 in 7bae701

secd = (tv.tv_sec % 64) - (((resp >> 8) & 0xffff) / 1000);
if(secd < 0) secd = 64 - secd;

This operation will add 64 sec to response time instead of subtracting secd from 64 (secd is negative number).
Am I right?
This happens only if the queried host responded in over 1 second.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions