Skip to content

Commit cc05b08

Browse files
authored
Fix CPU tooltip on server create page (pterodactyl#3416)
CPU usage is based on threads, however the create server page incorrectly specifies physical cores in the help text. Relocate a BlockIO blurb at the end of the CPU usage text which seems to be in the wrong place.
1 parent d049839 commit cc05b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
<span class="input-group-addon">%</span>
155155
</div>
156156

157-
<p class="text-muted small">If you do not want to limit CPU usage, set the value to <code>0</code>. To determine a value, take the number of <em>physical</em> cores and multiply it by 100. For example, on a quad core system <code>(4 * 100 = 400)</code> there is <code>400%</code> available. To limit a server to using half of a single core, you would set the value to <code>50</code>. To allow a server to use up to two physical cores, set the value to <code>200</code>. BlockIO should be a value between <code>10</code> and <code>1000</code>. Please see <a href="https://docs.docker.com/engine/reference/run/#/block-io-bandwidth-blkio-constraint" target="_blank">this documentation</a> for more information about it.<p>
157+
<p class="text-muted small">If you do not want to limit CPU usage, set the value to <code>0</code>. To determine a value, take the number of threads and multiply it by 100. For example, on a quad core system without hyperthreading <code>(4 * 100 = 400)</code> there is <code>400%</code> available. To limit a server to using half of a single thread, you would set the value to <code>50</code>. To allow a server to use up to two threads, set the value to <code>200</code>.<p>
158158
</div>
159159

160160
<div class="form-group col-xs-6">
@@ -208,7 +208,7 @@
208208
<input type="text" id="pIO" name="io" class="form-control" value="{{ old('io', 500) }}" />
209209
</div>
210210

211-
<p class="text-muted small"><strong>Advanced</strong>: The IO performance of this server relative to other <em>running</em> containers on the system. Value should be between <code>10</code> and <code>1000</code>.</p>
211+
<p class="text-muted small"><strong>Advanced</strong>: The IO performance of this server relative to other <em>running</em> containers on the system. Value should be between <code>10</code> and <code>1000</code>. Please see <a href="https://docs.docker.com/engine/reference/run/#/block-io-bandwidth-blkio-constraint" target="_blank">this documentation</a> for more information about it.</p>
212212
</div>
213213
</div>
214214
</div>

0 commit comments

Comments
 (0)