mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
adjust latency threshold
This commit is contained in:
parent
c52834c0c8
commit
bf3eeaa4f1
@ -37,10 +37,10 @@ const Footer = () => {
|
||||
const latencyToColor = (latency, type) => {
|
||||
switch (type) {
|
||||
case "http": {
|
||||
if (latency < 100) {
|
||||
if (latency < 200) {
|
||||
return "green"
|
||||
}
|
||||
if (latency < 200) {
|
||||
if (latency < 500) {
|
||||
return "orange"
|
||||
}
|
||||
return "red"
|
||||
|
Loading…
x
Reference in New Issue
Block a user