Repository: trafficserver
Updated Branches:
  refs/heads/6.0.x f068e1736 -> 25c6baae1


TS-3964: Stat for total time spent for HTTP/2 is 0

(cherry picked from commit c9a6059df83a80fd96486178876373d7807162db)


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/25c6baae
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/25c6baae
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/25c6baae

Branch: refs/heads/6.0.x
Commit: 25c6baae101d2c9091435d6c43a77f057c2e4495
Parents: f068e17
Author: Bryan Call <[email protected]>
Authored: Mon Oct 12 10:26:06 2015 -0700
Committer: Bryan Call <[email protected]>
Committed: Thu Nov 19 16:41:10 2015 -0800

----------------------------------------------------------------------
 proxy/http2/Http2ConnectionState.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/25c6baae/proxy/http2/Http2ConnectionState.h
----------------------------------------------------------------------
diff --git a/proxy/http2/Http2ConnectionState.h 
b/proxy/http2/Http2ConnectionState.h
index ba0b7fd..a37d293 100644
--- a/proxy/http2/Http2ConnectionState.h
+++ b/proxy/http2/Http2ConnectionState.h
@@ -105,7 +105,7 @@ public:
   {
     _thread = this_ethread();
     HTTP2_INCREMENT_THREAD_DYN_STAT(HTTP2_STAT_CURRENT_CLIENT_STREAM_COUNT, 
_thread);
-    _start_time = ink_hrtime();
+    _start_time = Thread::get_hrtime();
     // FIXME: Are you sure? every "stream" needs _req_header?
     _req_header.create(HTTP_TYPE_REQUEST);
   }
@@ -113,7 +113,7 @@ public:
   ~Http2Stream()
   {
     HTTP2_DECREMENT_THREAD_DYN_STAT(HTTP2_STAT_CURRENT_CLIENT_STREAM_COUNT, 
_thread);
-    ink_hrtime end_time = ink_hrtime();
+    ink_hrtime end_time = Thread::get_hrtime();
     HTTP2_SUM_THREAD_DYN_STAT(HTTP2_STAT_TOTAL_TRANSACTIONS_TIME, _thread, 
end_time - _start_time);
     _req_header.destroy();
 

Reply via email to