Skip to content

Commit

Permalink
DNS_Mgr: Fix GetNextTimeout() returning absolute values
Browse files Browse the repository at this point in the history
Not sure, must have been some sort of left-over, but wasn't really
effective due to Process() not being implemented.
  • Loading branch information
awelzel committed Sep 4, 2023
1 parent 7e11501 commit 62c06f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DNS_Mgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1456,8 +1456,7 @@ double DNS_Mgr::GetNextTimeout()

struct timeval* tvp = ares_timeout(channel, &tv, &tv);

return run_state::network_time + static_cast<double>(tvp->tv_sec) +
(static_cast<double>(tvp->tv_usec) / 1e6);
return static_cast<double>(tvp->tv_sec) + (static_cast<double>(tvp->tv_usec) / 1e6);
}

void DNS_Mgr::ProcessFd(int fd, int flags)
Expand Down

0 comments on commit 62c06f7

Please sign in to comment.