Skip to content

Commit

Permalink
Fix tx-based latency calculations
Browse files Browse the repository at this point in the history
Summary:
We need to take start timestamp off of the very first tx byte, not the
last one

Reviewed By: jbeshay

Differential Revision: D66476343

fbshipit-source-id: de55014a103f0dada3c363a3c340fab38e8ac633
  • Loading branch information
kvtsoy authored and facebook-github-bot committed Nov 26, 2024
1 parent 5f78024 commit 465dd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quic/tools/tperf/tperf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class ServerStreamHandler : public quic::QuicSocket::ConnectionSetupCallback,
auto sendBuffer = buf_->clone();
sendBuffer->append(blockSize_);
CHECK_GT(blockSize_, 0);
auto r = sock_->registerTxCallback(*stream, blockSize_ - 1, this);
auto r = sock_->registerTxCallback(*stream, 0, this);
if (r.hasError()) {
LOG(FATAL) << "Got error on registerTxCallback: "
<< quic::toString(r.error());
Expand Down

0 comments on commit 465dd36

Please sign in to comment.