Add back disk limiting!

This commit is contained in:
Dane Everitt 2017-04-21 22:44:56 -04:00
parent 4928620aab
commit 147f473eeb
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 9 additions and 2 deletions

View file

@ -436,7 +436,7 @@ class ServersController extends Controller
try {
$repo->changeBuild($id, $request->intersect([
'allocation_id', 'add_allocations', 'remove_allocations',
'memory', 'swap', 'io', 'cpu',
'memory', 'swap', 'io', 'cpu', 'disk',
]));
Alert::success('Server details were successfully updated.')->flash();

View file

@ -91,7 +91,14 @@
</div>
<p class="text-muted small">Changing this value can have negative effects on all containers on the system. We strongly recommend leaving this value as <code>500</code>.</p>
</div>
<div class="form-group">
<label for="cpu" class="control-label">Disk Space Limit</label>
<div class="input-group">
<input type="text" name="disk" class="form-control" value="{{ old('disk', $server->disk) }}"/>
<span class="input-group-addon">MB</span>
</div>
<p class="text-muted small">This server will not be allowed to boot if it is using more than this amount of space. If a server goes over this limit while running it will be safely stopped and locked until enough space is available.</p>
</div>
</div>
</div>
</div>