Skip to content

Commit

Permalink
TS-4331 TTL is in seconds, not nanoseconds
Browse files Browse the repository at this point in the history
This closes #695
  • Loading branch information
jacksontj committed Jun 6, 2016
1 parent 5f0a649 commit 378cf9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iocore/hostdb/HostDB.cc
Expand Up @@ -1995,7 +1995,7 @@ HostDBContinuation::do_dns()
if (action.continuation) {
// Set the TTL based on how much time remains until the next sync
HostDBInfo *r = lookup_done(IpAddr(find_result->second), md5.host_name, false,
current_host_file_map->next_sync_time - Thread::get_hrtime(), NULL);
(current_host_file_map->next_sync_time - Thread::get_hrtime()) / HRTIME_SECOND, NULL);
reply_to_cont(action.continuation, r);
}
hostdb_cont_free(this);
Expand Down

0 comments on commit 378cf9f

Please sign in to comment.