Allow swap to be assigned as -1
This commit is contained in:
parent
7013d10987
commit
938df4023d
|
@ -398,7 +398,7 @@ class ServerRepository
|
||||||
'add_additional' => 'array',
|
'add_additional' => 'array',
|
||||||
'remove_additional' => 'array',
|
'remove_additional' => 'array',
|
||||||
'memory' => 'integer|min:0',
|
'memory' => 'integer|min:0',
|
||||||
'swap' => 'integer|min:0',
|
'swap' => 'integer|min:-1',
|
||||||
'io' => 'integer|min:10|max:1000',
|
'io' => 'integer|min:10|max:1000',
|
||||||
'cpu' => 'integer|min:0',
|
'cpu' => 'integer|min:0',
|
||||||
'disk' => 'integer|min:0'
|
'disk' => 'integer|min:0'
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<p class="text-muted"><small>If you do not want to assign swap space to a server simply put <code>0</code> for the value. We suggest leaving OOM Killer enabled unless you know what you are doing, disabling it could cause your server to hang unexpectedly.</small><p>
|
<p class="text-muted"><small>If you do not want to assign swap space to a server simply put <code>0</code> for the value, or <code>-1</code> to allow unlimited swap space. If you want to disable memory limiting on a server simply enter <code>0</code> into the memory field. We suggest leaving OOM Killer enabled unless you know what you are doing, disabling it could cause your server to hang unexpectedly.</small><p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
Loading…
Reference in New Issue