Skip to content

Commit

Permalink
adjust calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jjolano committed Apr 28, 2022
1 parent 0a6b738 commit f670df9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ struct XivAlexander::Apps::MainApp::Internal::NetworkTimingHandler::Implementati
description << std::format(" rttAvg={}+{}us", rttMeanUs, rttDeviationUs);

// Estimate latency based on server response time statistics.
auto latencyEstimateUs = ((rttMinUs + rttMeanUs - rttDeviationUs) / 2) - 30000;
auto latencyEstimateUs = ((rttMinUs + rttMeanUs) / 2) - rttDeviationUs - 30000;
latencyEstimateUs = std::max(latencyUs, latencyEstimateUs);
description << std::format(" latEst={}us", latencyEstimateUs);

Expand Down

0 comments on commit f670df9

Please sign in to comment.