Added statistics to main screen.

This commit is contained in:
Revertron
2021-05-21 23:32:46 +02:00
parent ebcb7174fe
commit 88404a635b
8 changed files with 80 additions and 16 deletions
+5 -3
View File
@@ -510,9 +510,11 @@ function setLeftStatusBarText(text) {
bar.innerHTML = text;
}
function setRightStatusBarText(text) {
var bar = document.getElementById("status_bar_right");
bar.innerHTML = text;
function setStats(blocks, domains, keys, nodes) {
document.getElementById("stat_blocks").innerHTML = blocks;
document.getElementById("stat_domains").innerHTML = domains;
document.getElementById("stat_keys").innerHTML = keys;
document.getElementById("stat_nodes").innerHTML = nodes;
}
function addEvent(type, time, message) {