Skip to content

Commit

Permalink
Update serverstatus.js
Browse files Browse the repository at this point in the history
change style for io speed
  • Loading branch information
cppla authored May 10, 2022
1 parent dae7c07 commit ab5d6f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/js/serverstatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,8 @@ function uptime() {
io += parseInt(result.servers[i].io_write/1024) + "K";
else
io += parseInt(result.servers[i].io_write/1024/1024) + "M";
TableRow.children["hdd"].children[0].setAttribute("data-toggle", "tooltip");
TableRow.children["hdd"].children[0].setAttribute("data-placement", "right");
TableRow.children["hdd"].children[0].setAttribute("title", io);
// Expand for HDD.
ExpandRow[0].children["expand_hdd"].innerHTML = "硬盘/读/写: " + bytesToSize(result.servers[i].hdd_used*1024*1024, 2) + " / " + bytesToSize(result.servers[i].hdd_total*1024*1024, 2) + " / " + io;
ExpandRow[0].children["expand_hdd"].innerHTML = "硬盘|读写: " + bytesToSize(result.servers[i].hdd_used*1024*1024, 2) + " / " + bytesToSize(result.servers[i].hdd_total*1024*1024, 2) + " | " + io;

// delay time

Expand Down

0 comments on commit ab5d6f7

Please sign in to comment.