Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5862d03

Browse filesBrowse files
jasnellBethGriggs
authored andcommitted
http2: fix ping duration calculation
Backport-PR-URL: #22850 PR-URL: #19956 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent fe3836a commit 5862d03
Copy full SHA for 5862d03

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎src/node_http2.cc‎

Copy file name to clipboardExpand all lines: src/node_http2.cc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,8 +2832,8 @@ void Http2Session::Http2Ping::Send(uint8_t* payload) {
28322832
}
28332833

28342834
void Http2Session::Http2Ping::Done(bool ack, const uint8_t* payload) {
2835-
session_->statistics_.ping_rtt = (uv_hrtime() - startTime_);
2836-
double duration = (session_->statistics_.ping_rtt - startTime_) / 1e6;
2835+
session_->statistics_.ping_rtt = uv_hrtime() - startTime_;
2836+
double duration = session_->statistics_.ping_rtt / 1e6;
28372837

28382838
Local<Value> buf = Undefined(env()->isolate());
28392839
if (payload != nullptr) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.