mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-31 10:44:45 +02:00
Round memory, swap and disk limits for wings (#523)
This commit is contained in:
parent
953ee940aa
commit
2e094605e9
@ -51,12 +51,12 @@ class ServerConfigurationStructureService
|
|||||||
'invocation' => $server->startup,
|
'invocation' => $server->startup,
|
||||||
'skip_egg_scripts' => $server->skip_scripts,
|
'skip_egg_scripts' => $server->skip_scripts,
|
||||||
'build' => [
|
'build' => [
|
||||||
'memory_limit' => config('panel.use_binary_prefix') ? $server->memory : $server->memory / 1.048576,
|
'memory_limit' => (int) round(config('panel.use_binary_prefix') ? $server->memory : $server->memory / 1.048576),
|
||||||
'swap' => config('panel.use_binary_prefix') ? $server->swap : $server->swap / 1.048576,
|
'swap' => (int) round(config('panel.use_binary_prefix') ? $server->swap : $server->swap / 1.048576),
|
||||||
'io_weight' => $server->io,
|
'io_weight' => $server->io,
|
||||||
'cpu_limit' => $server->cpu,
|
'cpu_limit' => $server->cpu,
|
||||||
'threads' => $server->threads,
|
'threads' => $server->threads,
|
||||||
'disk_space' => config('panel.use_binary_prefix') ? $server->disk : $server->disk / 1.048576,
|
'disk_space' => (int) round(config('panel.use_binary_prefix') ? $server->disk : $server->disk / 1.048576),
|
||||||
'oom_killer' => $server->oom_killer,
|
'oom_killer' => $server->oom_killer,
|
||||||
],
|
],
|
||||||
'container' => [
|
'container' => [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user