Add websocket statistics

This commit is contained in:
2020-08-31 18:48:54 +02:00
parent cc87a40740
commit 91be276799
2 changed files with 23 additions and 0 deletions

View File

@@ -186,6 +186,10 @@ function getStats(order) {
let c = document.getElementById("tconnstat_body")
c.innerHTML = ""
document.getElementById("file_stats_watchers").innerText = resp.stats_watcher_threads;
document.getElementById("file_stats_listeners").innerText = resp.stats_watcher_listeners;
document.getElementById("file_stats_avg").innerText = resp.stats_watcher_listeners / resp.stats_watcher_threads;
resp.db_connection_stats.forEach(v => {
let row = document.createElement("tr")
row.innerHTML = `\