diff --git a/frontend/index.html b/frontend/index.html index e4af306..78af3ee 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -85,7 +85,7 @@

Web Pings

>n/a Packet Loss0% + >: 0.00%
diff --git a/frontend/index.ts b/frontend/index.ts index 9ab381b..164a5c1 100644 --- a/frontend/index.ts +++ b/frontend/index.ts @@ -306,7 +306,7 @@ function updatePacketLossSpan() { if (total == 0) { return; } - const percent = Math.round((numTimeoutPings / total) * 100); + const percent = ((numTimeoutPings / total) * 100).toFixed(2); packetLossSpan.innerHTML = String(percent) + "%"; }