Changed signal strength requirements again.
This commit is contained in:
parent
e32eabea1f
commit
4d585af061
1 changed files with 2 additions and 2 deletions
|
@ -666,8 +666,8 @@ window.Umi = { UI: {}, Protocol: { SockChat: { Protocol: {} } } };
|
||||||
if(dumpEvents) console.log('ping:recv', ev);
|
if(dumpEvents) console.log('ping:recv', ev);
|
||||||
|
|
||||||
let strength = 3;
|
let strength = 3;
|
||||||
if(ev.detail.diff >= 1000) --strength;
|
if(ev.detail.diff >= 400) --strength;
|
||||||
if(ev.detail.diff >= 250) --strength;
|
if(ev.detail.diff >= 200) --strength;
|
||||||
|
|
||||||
pingToggle.title = `${ev.detail.diff.toLocaleString()}ms`;
|
pingToggle.title = `${ev.detail.diff.toLocaleString()}ms`;
|
||||||
pingIndicator.setStrength(strength);
|
pingIndicator.setStrength(strength);
|
||||||
|
|
Loading…
Reference in a new issue