fix(proxy): place timeout nodes at the end when sorting by latency
This commit is contained in:
@@ -197,7 +197,7 @@ class DelayManager {
|
||||
formatDelay(delay: number, timeout = 10000) {
|
||||
if (delay === -1) return "-";
|
||||
if (delay === -2) return "testing";
|
||||
if (delay === 0 || (delay >= timeout && delay <= 1e5)) return "timeout";
|
||||
if (delay === 0 || (delay >= timeout && delay <= 1e5)) return "Timeout";
|
||||
if (delay > 1e5) return "Error";
|
||||
return `${delay}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user