更新 Speed/SyncBuildService.php
This commit is contained in:
parent
d895f674a8
commit
0ca7c9edab
@ -39,10 +39,10 @@ readonly class SyncBuildService
|
||||
$this->networkService->syncSettings($server);
|
||||
|
||||
/* Sync rate limit */
|
||||
if (isset($server->rate_limit) && $server->rate_limit > 0) {
|
||||
$this->networkService->updateRateLimit($server, (float) $server->rate_limit);
|
||||
if (!is_null($server->rate_limit) && $server->rate_limit > 0) {
|
||||
$this->networkService->updateRateLimit($server, $server->rate_limit);
|
||||
} else {
|
||||
$this->networkService->updateRateLimit($server);
|
||||
$this->networkService->updateRateLimit($server, null);
|
||||
}
|
||||
|
||||
// find a disk that has a corresponding disk in the deployment
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user