Changed signal strength requirements again.

This commit is contained in:
flash 2024-03-02 02:38:19 +00:00
parent e32eabea1f
commit 4d585af061

View file

@ -666,8 +666,8 @@ window.Umi = { UI: {}, Protocol: { SockChat: { Protocol: {} } } };
if(dumpEvents) console.log('ping:recv', ev);
let strength = 3;
if(ev.detail.diff >= 1000) --strength;
if(ev.detail.diff >= 250) --strength;
if(ev.detail.diff >= 400) --strength;
if(ev.detail.diff >= 200) --strength;
pingToggle.title = `${ev.detail.diff.toLocaleString()}ms`;
pingIndicator.setStrength(strength);