Commit 2ee90b76 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 605f1d14
Pipeline #16359 passed with stages
in 26 seconds
......@@ -67,7 +67,7 @@ export class Router implements Hello, PeerQuality {
for (let i = 0; i < history.length - 1; i++) {
jitterSum += Math.abs(history[i] - history[i + 1]);
}
this.jitter = jitterSum / history.length - 1 || 0;
this.jitter = jitterSum / (history.length - 1) || 0;
this.seq = data.seq;
this.time = time;
......@@ -91,4 +91,3 @@ export class Router implements Hello, PeerQuality {
};
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment