更新 Speed/SyncBuildService.php
This commit is contained in:
parent
7a2b777c1a
commit
413431025e
@ -38,6 +38,13 @@ readonly class SyncBuildService
|
|||||||
/* Sync network configuration */
|
/* Sync network configuration */
|
||||||
$this->networkService->syncSettings($server);
|
$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
|
// find a disk that has a corresponding disk in the deployment
|
||||||
$disksArray = collect($disks->toArray())->pluck('interface')->all();
|
$disksArray = collect($disks->toArray())->pluck('interface')->all();
|
||||||
$bootOrder = array_filter(
|
$bootOrder = array_filter(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user