Prevent breaking eventLoopLagThreshold value

[This problem](https://community.nodebb.org/topic/7955/and-once-again-all-my-data-has-gone/4) occurs when you put a value less than `10`.
v1.18.x
Ole R 9 years ago
parent 2b7ed63236
commit 6d35690cbb

@ -85,7 +85,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="eventLoopLagThreshold">Event Loop Lag Threshold (in milliseconds)</label> <label for="eventLoopLagThreshold">Event Loop Lag Threshold (in milliseconds)</label>
<input class="form-control" id="eventLoopLagThreshold" type="number" data-field="eventLoopLagThreshold" placeholder="Default: 70" step="10" value="70" /> <input class="form-control" id="eventLoopLagThreshold" type="number" data-field="eventLoopLagThreshold" placeholder="Default: 70" step="10" min="10" value="70" />
<p class="help-block"> <p class="help-block">
Lowering this value decreases wait times for page loads, but will also show the Lowering this value decreases wait times for page loads, but will also show the
"excessive load" message to more users. (Reload required) "excessive load" message to more users. (Reload required)
@ -103,4 +103,4 @@
</div> </div>
</div> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

Loading…
Cancel
Save