summaryrefslogtreecommitdiffstats
path: root/static/table.html
diff options
context:
space:
mode:
authorUdo Walter2019-05-28 13:58:47 +0200
committerUdo Walter2019-05-28 13:58:47 +0200
commitf23ebc168936d8f7d8225645eb2f9ea51a9430b5 (patch)
tree82a1db5f45d5992aad4d11ebb4115352608a5aa2 /static/table.html
parenttable.html: bug fix (diff)
downloaddnbd3-status-f23ebc168936d8f7d8225645eb2f9ea51a9430b5.tar.gz
dnbd3-status-f23ebc168936d8f7d8225645eb2f9ea51a9430b5.tar.xz
dnbd3-status-f23ebc168936d8f7d8225645eb2f9ea51a9430b5.zip
table.html: fix server column color after a server was offline
Diffstat (limited to 'static/table.html')
-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)