mirror of
https://github.com//cppla/ServerStatus
synced 2025-06-02 21:59:51 +08:00
no float for IO
This commit is contained in:
parent
0f26eb502a
commit
54451cab85
web
@ -20,7 +20,7 @@ tr.odd.expandRow > :hover { background: #212e36 !important; }
|
||||
#month_traffic { min-width: 85px; max-width: 95px;}
|
||||
#network { min-width: 115px; }
|
||||
#cpu, #ram, #hdd { min-width: 20px; max-width: 60px; }
|
||||
#io { width: 115px; }
|
||||
#io { width: 110px; }
|
||||
#ping { max-width: 95px; }
|
||||
|
||||
@media only screen and (max-width: 1080px) {
|
||||
|
@ -17,7 +17,7 @@ tr.odd.expandRow > :hover { background: #FFF !important; }
|
||||
#month_traffic { min-width: 85px; max-width: 95px;}
|
||||
#network { min-width: 115px; }
|
||||
#cpu, #ram, #hdd { min-width: 20px; max-width: 60px; }
|
||||
#io { width: 115px; }
|
||||
#io { width: 110px; }
|
||||
#ping { max-width: 95px; }
|
||||
|
||||
@media only screen and (max-width: 1080px) {
|
||||
|
@ -243,14 +243,14 @@ function uptime() {
|
||||
//IO, 过小的B字节单位没有意义
|
||||
var io = "";
|
||||
if(result.servers[i].io_read < 1024*1024)
|
||||
io += (result.servers[i].io_read/1024).toFixed(1) + "K";
|
||||
io += parseInt(result.servers[i].io_read/1024) + "K";
|
||||
else
|
||||
io += (result.servers[i].io_read/1024/1024).toFixed(1) + "M";
|
||||
io += parseInt(result.servers[i].io_read/1024/1024) + "M";
|
||||
io += "💿"
|
||||
if(result.servers[i].io_write < 1024*1024)
|
||||
io += (result.servers[i].io_write/1024).toFixed(1) + "K";
|
||||
io += parseInt(result.servers[i].io_write/1024) + "K";
|
||||
else
|
||||
io += (result.servers[i].io_write/1024/1024).toFixed(1) + "M";
|
||||
io += parseInt(result.servers[i].io_write/1024/1024) + "M";
|
||||
TableRow.children["io"].innerHTML = io;
|
||||
|
||||
// delay time
|
||||
|
Loading…
x
Reference in New Issue
Block a user