mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 23:39:15 +02:00
make it look normal
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ function handleMessage(msg) {
|
||||
if(msg.time && timeOffset != 0) {
|
||||
const now = performance.now() / 1000;
|
||||
const lag = now - (msg.time + timeOffset);
|
||||
document.getElementById("ping-status").textContent = lag * 1000;
|
||||
document.getElementById("ping-status").textContent = (Math.max(lag, 0) * 1000).toFixed(2);
|
||||
}
|
||||
switch (msg.event) {
|
||||
case "time": {
|
||||
|
||||
Reference in New Issue
Block a user