mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14:45 +02:00
Add hint about overhead when using memory limit (#1069)
* Add hint about overhead when using memory limit * Update lang/en/admin/server.php Co-authored-by: Boy132 <Boy132@users.noreply.github.com> * escape `'` --------- Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
This commit is contained in:
parent
7f0c7da37f
commit
998ad2ee31
@ -551,6 +551,8 @@ class CreateServer extends CreateRecord
|
|||||||
->hidden(fn (Get $get) => $get('unlimited_mem'))
|
->hidden(fn (Get $get) => $get('unlimited_mem'))
|
||||||
->label(trans('admin/server.memory_limit'))->inlineLabel()
|
->label(trans('admin/server.memory_limit'))->inlineLabel()
|
||||||
->suffix(config('panel.use_binary_prefix') ? 'MiB' : 'MB')
|
->suffix(config('panel.use_binary_prefix') ? 'MiB' : 'MB')
|
||||||
|
->hintIcon('tabler-question-mark')
|
||||||
|
->hintIconToolTip(trans('admin/server.memory_helper'))
|
||||||
->default(0)
|
->default(0)
|
||||||
->required()
|
->required()
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
|
@ -248,6 +248,8 @@ class EditServer extends EditRecord
|
|||||||
->hidden(fn (Get $get) => $get('unlimited_mem'))
|
->hidden(fn (Get $get) => $get('unlimited_mem'))
|
||||||
->label(trans('admin/server.memory_limit'))->inlineLabel()
|
->label(trans('admin/server.memory_limit'))->inlineLabel()
|
||||||
->suffix(config('panel.use_binary_prefix') ? 'MiB' : 'MB')
|
->suffix(config('panel.use_binary_prefix') ? 'MiB' : 'MB')
|
||||||
|
->hintIcon('tabler-question-mark')
|
||||||
|
->hintIconToolTip(trans('admin/server.memory_helper'))
|
||||||
->required()
|
->required()
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
->numeric()
|
->numeric()
|
||||||
|
@ -36,6 +36,7 @@ return [
|
|||||||
'disabled' => 'Disabled',
|
'disabled' => 'Disabled',
|
||||||
'memory' => 'Memory',
|
'memory' => 'Memory',
|
||||||
'memory_limit' => 'Memory Limit',
|
'memory_limit' => 'Memory Limit',
|
||||||
|
'memory_helper' => 'Wings will add overhead to this value when creating the container to make sure it doesn\'t starve out when using max memory.',
|
||||||
'disk' => 'Disk Space',
|
'disk' => 'Disk Space',
|
||||||
'disk_limit' => 'Disk Space Limit',
|
'disk_limit' => 'Disk Space Limit',
|
||||||
'advanced_limits' => 'Advanced Limits',
|
'advanced_limits' => 'Advanced Limits',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user