This is an automated email from the ASF dual-hosted git repository.

jacksontj pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  d48b76e   TS-4331 TTL is in seconds, not nanoseconds (#695)
d48b76e is described below

commit d48b76e03fc0d99b144ff3a2276610d75b274899
Author: Thomas Jackson <[email protected]>
AuthorDate: Mon Jun 6 13:50:44 2016 -0700

    TS-4331 TTL is in seconds, not nanoseconds (#695)
    
    This closes #695
---
 iocore/hostdb/HostDB.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index f9beb6a..33c6459 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -1996,7 +1996,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);

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to