trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject trafficserver git commit: TS-3964: Stat for total time spent for HTTP/2 is 0
Date Mon, 12 Oct 2015 17:27:08 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master f12a2fa4e -> c9a6059df


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


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

Branch: refs/heads/master
Commit: c9a6059df83a80fd96486178876373d7807162db
Parents: f12a2fa
Author: Bryan Call <bcall@apache.org>
Authored: Mon Oct 12 10:26:06 2015 -0700
Committer: Bryan Call <bcall@apache.org>
Committed: Mon Oct 12 10:26:06 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c9a6059d/proxy/http2/Http2ConnectionState.h
----------------------------------------------------------------------
diff --git a/proxy/http2/Http2ConnectionState.h b/proxy/http2/Http2ConnectionState.h
index d089278..a0b5065 100644
--- a/proxy/http2/Http2ConnectionState.h
+++ b/proxy/http2/Http2ConnectionState.h
@@ -106,7 +106,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);
   }
@@ -114,7 +114,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();
 


Mime
View raw message