Skip to content

Commit dae7c07

Browse files
committed
1.0.8 build
1 parent 1444739 commit dae7c07

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

web/js/serverstatus.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ function bytesToSize(bytes, precision, si)
4141
} else {
4242
return bytes + ' B';
4343
}
44-
if(si != 0) {
44+
return ret;
45+
/*if(si != 0) {
4546
return ret + 'B';
4647
} else {
4748
return ret + 'iB';
48-
}
49+
}*/
4950
}
5051

5152
function uptime() {
@@ -243,7 +244,7 @@ function uptime() {
243244
io += parseInt(result.servers[i].io_read/1024) + "K";
244245
else
245246
io += parseInt(result.servers[i].io_read/1024/1024) + "M";
246-
io += "💾"
247+
io += " / "
247248
if(result.servers[i].io_write < 1024*1024)
248249
io += parseInt(result.servers[i].io_write/1024) + "K";
249250
else
@@ -252,7 +253,7 @@ function uptime() {
252253
TableRow.children["hdd"].children[0].setAttribute("data-placement", "right");
253254
TableRow.children["hdd"].children[0].setAttribute("title", io);
254255
// Expand for HDD.
255-
ExpandRow[0].children["expand_hdd"].innerHTML = "硬盘: " + bytesToSize(result.servers[i].hdd_used*1024*1024, 2) + " / " + bytesToSize(result.servers[i].hdd_total*1024*1024, 2);
256+
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;
256257

257258
// delay time
258259

0 commit comments

Comments
 (0)