diff options
author | Udo Walter | 2019-05-28 13:58:47 +0200 |
---|---|---|
committer | Udo Walter | 2019-05-28 13:58:47 +0200 |
commit | f23ebc168936d8f7d8225645eb2f9ea51a9430b5 (patch) | |
tree | 82a1db5f45d5992aad4d11ebb4115352608a5aa2 | |
parent | table.html: bug fix (diff) | |
download | dnbd3-status-f23ebc168936d8f7d8225645eb2f9ea51a9430b5.tar.gz dnbd3-status-f23ebc168936d8f7d8225645eb2f9ea51a9430b5.tar.xz dnbd3-status-f23ebc168936d8f7d8225645eb2f9ea51a9430b5.zip |
table.html: fix server column color after a server was offline
-rw-r--r-- | static/table.html | 2 |
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) |