Frontend: Adjust Stats display

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-02-02 18:53:29 +00:00
parent be745978bb
commit 07d281a56b
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ async function display(data) {
document.getElementById('server_host').textContent = `HOST: ${data.host}`; document.getElementById('server_host').textContent = `HOST: ${data.host}`;
let dat = data.dat[0] let dat = data.dat[0]
console.log(JSON.stringify(dat)) console.log(JSON.stringify(dat))
document.getElementById('time').textContent = `COUNTER START TIME: ${dat.since}`; document.getElementById('time').textContent = dat.since;
document.getElementById('ldbws').textContent = dat.ldbws || "0"; document.getElementById('ldbws').textContent = dat.ldbws || "0";
document.getElementById('ldbsvws').textContent = dat.ldbsvws || "0"; document.getElementById('ldbsvws').textContent = dat.ldbsvws || "0";
document.getElementById('corpus').textContent = dat.corpus || "0"; document.getElementById('corpus').textContent = dat.corpus || "0";

View File

@ -4,11 +4,11 @@
<title>OwlBoard - STATS</title> <title>OwlBoard - STATS</title>
<script src="./js/stat.js"></script> <script src="./js/stat.js"></script>
</head> </head>
<body> <body style="text-align:center">
<h1>OwlBoard Server Stats</h1> <h1>OwlBoard Server Stats</h1>
<h2 id="server_host"></h2> <h2 id="server_host"></h2>
<p id="time"></p> <p>Counters Reset - <span id="time"></span></p>
<table style="margin: auto; text-align:center"> <table style="margin:auto;text-align:center;">
<tr> <tr>
<th>Resource</th> <th>Resource</th>
<th>Hit Count</th> <th>Hit Count</th>