diff --git a/server/src/main.cpp b/server/src/main.cpp index 243182c..2e08d33 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -144,14 +144,14 @@ int CMain::HandleMessage(int ClientNetID, char *pMessage) pClient->m_Stats.m_ping_189 = rStart["ping_189"].u.dbl; if(rStart["ping_10086"].type) pClient->m_Stats.m_ping_10086 = rStart["ping_10086"].u.dbl; - if(rStart["tcp_count"].type) - pClient->m_Stats.m_tcpCount = rStart["tcp_count"].u.dbl; - if(rStart["udp_count"].type) - pClient->m_Stats.m_udpCount = rStart["udp_count"].u.dbl; - if(rStart["process_count"].type) - pClient->m_Stats.m_processCount = rStart["process_count"].u.dbl; - if(rStart["thread_count"].type) - pClient->m_Stats.m_threadCount = rStart["thread_count"].u.dbl; + if(rStart["tcp"].type) + pClient->m_Stats.m_tcpCount = rStart["tcp"].u.integer; + if(rStart["udp"].type) + pClient->m_Stats.m_udpCount = rStart["udp"].u.integer; + if(rStart["process"].type) + pClient->m_Stats.m_processCount = rStart["process"].u.integer; + if(rStart["thread"].type) + pClient->m_Stats.m_threadCount = rStart["thread"].u.integer; if(rStart["network_rx"].type) pClient->m_Stats.m_NetworkRx = rStart["network_rx"].u.integer; if(rStart["network_tx"].type) diff --git a/web/js/serverstatus.js b/web/js/serverstatus.js index 325db1b..bf44e12 100644 --- a/web/js/serverstatus.js +++ b/web/js/serverstatus.js @@ -103,6 +103,7 @@ function uptime() { "
加载中
" + "
加载中
" + "
加载中
" + + "
加载中
" + "
加载中
" + "" ); @@ -276,7 +277,7 @@ function uptime() { // delay time // tcp, udp, process, thread count - ExpandRow[0].children["expand_tupd"].innerHTML = "TUPD: " + result.servers[i].tcp + " / " + result.servers[i].udp + " / " + result.servers[i].process+ " / " + result.servers[i].thread; + ExpandRow[0].children["expand_tupd"].innerHTML = "TCP/UDP/进/线: " + result.servers[i].tcp_count + " / " + result.servers[i].udp_count + " / " + result.servers[i].process_count+ " / " + result.servers[i].thread_count; // ping