Skip to content

Commit ea723f7

Browse files
authored
fix central europe ping (#5948)
1 parent 5abcfe6 commit ea723f7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/frontend/src/pages/hosting/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,8 +1249,12 @@ const PING_COUNT = 20
12491249
const PING_INTERVAL = 200
12501250
const MAX_PING_TIME = 1000
12511251
1252-
function runPingTest(region, index = 1) {
1253-
if (index > 10) {
1252+
const initialIndex = {
1253+
'eu-lim': 31,
1254+
}
1255+
1256+
function runPingTest(region, index = initialIndex[region.shortcode] ?? 1) {
1257+
if (index > (initialIndex[region.shortcode] ?? 1) + 10) {
12541258
regionPings.value.push({
12551259
region: region.shortcode,
12561260
ping: -1,

0 commit comments

Comments
 (0)