From 3c53b5793b0d90288fb9a2799227d40c72156306 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Sun, 31 May 2026 16:26:41 -0700 Subject: [PATCH] fix ping test in app --- .../billing/ServersUpgradeModalWrapper.vue | 11 +++++++++-- .../ui/src/layouts/wrapped/hosting/manage/index.vue | 12 +++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/components/billing/ServersUpgradeModalWrapper.vue b/packages/ui/src/components/billing/ServersUpgradeModalWrapper.vue index fba939f63..0a12ee479 100644 --- a/packages/ui/src/components/billing/ServersUpgradeModalWrapper.vue +++ b/packages/ui/src/components/billing/ServersUpgradeModalWrapper.vue @@ -140,8 +140,15 @@ const PING_COUNT = 20 const PING_INTERVAL = 200 const MAX_PING_TIME = 1000 -function runPingTest(region: Archon.Servers.v1.Region, index = 1) { - if (index > 10) { +const initialIndex = { + 'eu-lim': 31, +} + +function runPingTest( + region: Archon.Servers.v1.Region, + index = initialIndex[region.shortcode] ?? 1, +) { + if (index > (initialIndex[region.shortcode] ?? 1) + 10) { regionPings.value.push({ region: region.shortcode, ping: -1, diff --git a/packages/ui/src/layouts/wrapped/hosting/manage/index.vue b/packages/ui/src/layouts/wrapped/hosting/manage/index.vue index 9699b004b..c599dc2c8 100644 --- a/packages/ui/src/layouts/wrapped/hosting/manage/index.vue +++ b/packages/ui/src/layouts/wrapped/hosting/manage/index.vue @@ -428,9 +428,15 @@ const PING_COUNT = 20 const PING_INTERVAL = 200 const MAX_PING_TIME = 1000 -function runPingTest(region: Archon.Servers.v1.Region, index = 1) { - if (index > 10) { - regionPings.value = regionPings.value.filter((entry) => entry.region !== region.shortcode) +const initialIndex = { + 'eu-lim': 31, +} + +function runPingTest( + region: Archon.Servers.v1.Region, + index = initialIndex[region.shortcode] ?? 1, +) { + if (index > (initialIndex[region.shortcode] ?? 1) + 10) { regionPings.value.push({ region: region.shortcode, ping: -1,