latency badge - fix data
This commit is contained in:
parent
5315d88903
commit
c1a4481bf2
|
|
@ -32,11 +32,11 @@ const JKLatencyBadge = ({ latencyData, showAll }) => {
|
|||
|
||||
useEffect(() => {
|
||||
if (latencyData) {
|
||||
const tot = Math.round(latencyData.ars_internet_latency) + Math.round(latencyData.audio_latency);
|
||||
const tot = Math.round(latencyData.ars.internet_latency) + Math.round(latencyData.audio_latency);
|
||||
setLatencyLabel(tot);
|
||||
|
||||
if (showAll) {
|
||||
setLatencyInfo(`${Math.round(latencyData.ars_internet_latency)}ms (Internet) + ${Math.round(latencyData.audio_latency)}ms (audio) = ${tot}ms (total) `);
|
||||
setLatencyInfo(`${Math.round(latencyData.ars.internet_latency)}ms (Internet) + ${Math.round(latencyData.audio_latency)}ms (audio) = ${tot}ms (total) `);
|
||||
} else {
|
||||
setLatencyInfo(`${tot}ms`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue