From 413431025e31d9b5f6b7d3345d6abfcbaee87fce Mon Sep 17 00:00:00 2001 From: ste87 Date: Sat, 14 Mar 2026 14:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Speed/SyncBuildService.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Speed/SyncBuildService.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Speed/SyncBuildService.php b/Speed/SyncBuildService.php index 4503fc3..4e48b65 100644 --- a/Speed/SyncBuildService.php +++ b/Speed/SyncBuildService.php @@ -38,6 +38,13 @@ readonly class SyncBuildService /* Sync network configuration */ $this->networkService->syncSettings($server); + /* Sync rate limit */ + if (isset($server->rate_limit) && $server->rate_limit > 0) { + $this->networkService->updateRateLimit($server, (float) $server->rate_limit); + } else { + $this->networkService->updateRateLimit($server); + } + // find a disk that has a corresponding disk in the deployment $disksArray = collect($disks->toArray())->pluck('interface')->all(); $bootOrder = array_filter(