Implement bandwidth limiting

This commit is contained in:
2021-11-09 10:49:49 +01:00
parent 8fd9641a8c
commit 0f716dee6a
2 changed files with 12 additions and 4 deletions

View File

@@ -224,10 +224,10 @@
</div> </div>
<div> <div>
<div class="feat_label"> <div class="feat_label">
Bandwidth priority Bandwidth
</div> </div>
<div class="feat_normal"> <div class="feat_normal">
Download speed will be throttled during busy periods Up to 8 MiB/s, may be slower during busy periods
</div> </div>
<div class="feat_pro"> <div class="feat_pro">
<span class="text_highlight">High priority</span> <span class="text_highlight">High priority</span>

View File

@@ -76,7 +76,9 @@ let status = {
remote_reads_per_sec: 0, remote_reads_per_sec: 0,
running_since: "", running_since: "",
stats_watcher_listeners: 0, stats_watcher_listeners: 0,
stats_watcher_threads: 0 stats_watcher_threads: 0,
download_clients: 0,
download_connections: 0,
} }
function getStats(order) { function getStats(order) {
@@ -228,7 +230,7 @@ onDestroy(() => {
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3>Websocket statistics</h3> <h3>Socket statistics</h3>
<table> <table>
<thead> <thead>
<tr> <tr>
@@ -245,6 +247,12 @@ onDestroy(() => {
<td>{status.stats_watcher_listeners}</td> <td>{status.stats_watcher_listeners}</td>
<td>{(status.stats_watcher_listeners / status.stats_watcher_threads).toPrecision(3)}</td> <td>{(status.stats_watcher_listeners / status.stats_watcher_threads).toPrecision(3)}</td>
</tr> </tr>
<tr>
<td>Downloads</td>
<td>{status.download_clients}</td>
<td>{status.download_connections}</td>
<td>{(status.download_connections / status.download_clients).toPrecision(3)}</td>
</tr>
</tbody> </tbody>
</table> </table>
<h3>Query statistics</h3> <h3>Query statistics</h3>