summaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-02 18:00:42 +0200
committerSimon Rettberg2019-07-02 18:00:42 +0200
commit0fc5f7cf03bab91c6591d730550998a8d962f148 (patch)
treec21f6d473451973aaddd1d4916104c0c82289b11 /static
parentFix export of serverCount via data2.json (diff)
downloaddnbd3-status-0fc5f7cf03bab91c6591d730550998a8d962f148.tar.gz
dnbd3-status-0fc5f7cf03bab91c6591d730550998a8d962f148.tar.xz
dnbd3-status-0fc5f7cf03bab91c6591d730550998a8d962f148.zip
Fix client/server count
Diffstat (limited to 'static')
-rw-r--r--static/table.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/table.html b/static/table.html
index 84dc81d..5f1b074 100644
--- a/static/table.html
+++ b/static/table.html
@@ -115,7 +115,7 @@ var app = new Vue({
const servers = Object.values(this.serverMap)
servers.sort(this.compareObjectIps)
servers.forEach(server => {
- if (this.rawData.timestamp - server.timestamp > 6000) server.offline = true
+ server.offline = (this.rawData.timestamp - server.timestamp) > 6000
const clients = Object.values(server.clientMap)
if (this.peak) {
server.clients = clients.filter(client => client.peakUploadSpeed > 0)