Skip to content

Commit 938df40

Browse files
committed
Allow swap to be assigned as -1
1 parent 7013d10 commit 938df40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public function changeBuild($id, array $data)
398398
'add_additional' => 'array',
399399
'remove_additional' => 'array',
400400
'memory' => 'integer|min:0',
401-
'swap' => 'integer|min:0',
401+
'swap' => 'integer|min:-1',
402402
'io' => 'integer|min:10|max:1000',
403403
'cpu' => 'integer|min:0',
404404
'disk' => 'integer|min:0'

resources/views/admin/servers/new.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
</div>
126126
<div class="row">
127127
<div class="col-md-12">
128-
<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>
128+
<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>
129129
</div>
130130
</div>
131131
<div class="row">

0 commit comments

Comments
 (0)