Skip to content

Commit

Permalink
Update serverstatus.js
Browse files Browse the repository at this point in the history
fix a bug for ping time
  • Loading branch information
cppla authored Dec 21, 2018
1 parent cd9cf8e commit 85c8408
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web/js/serverstatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,6 @@ function uptime() {
var pingTime = result.servers[i].time_10010 + "ms💻" + result.servers[i].time_189 + "ms💻" + result.servers[i].time_10086 + "ms"
if (PING_10010 >= 10 || PING_189 >= 10 || PING_10086 >= 10)
TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-danger";
TableRow.children["ping"].children[0].children[0].setAttribute("data-toggle", "tooltip");
TableRow.children["ping"].children[0].children[0].setAttribute("data-placement", "right");
TableRow.children["ping"].children[0].children[0].setAttribute("title", '0ms💻0ms💻0ms');
else
TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-success";
TableRow.children["ping"].children[0].children[0].setAttribute("data-toggle", "tooltip");
Expand Down

0 comments on commit 85c8408

Please sign in to comment.