Skip to content

Commit

Permalink
round min and max latencies
Browse files Browse the repository at this point in the history
fixes #24 (thanks @sxflynn for report)
  • Loading branch information
benhansen-io committed Mar 25, 2024
1 parent e962a9c commit db74538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ function updatePingStatsOnSuccess(sentMillis: number, receivedMillis: number) {

const avgRTT = Math.round(totalRoundTripTime / numSuccessfulPings);
averageRoundTripTimeSpan.innerHTML = avgRTT + " ms";
minRoundTripTimeSpan.innerHTML = minPing + "ms";
maxRoundTripTimeSpan.innerHTML = maxPing + "ms";
minRoundTripTimeSpan.innerHTML = Math.round(minPing) + " ms";
maxRoundTripTimeSpan.innerHTML = Math.round(maxPing) + " ms";
updatePacketLossSpan();
}

Expand Down

0 comments on commit db74538

Please sign in to comment.