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