mirror of
https://github.com//cppla/ServerStatus
synced 2025-06-02 05:39:50 +08:00
修复增删节点月流量错误适配,置0, todo:等待全适配
This commit is contained in:
parent
5078381215
commit
e274b09c0f
@ -438,8 +438,12 @@ int CMain::ReadConfig()
|
||||
if(ID < 0 || ID >= NET_MAX_CLIENTS)
|
||||
continue;
|
||||
|
||||
Client(ID)->m_LastNetworkIN = rStart[i]["last_network_in"].u.integer;
|
||||
Client(ID)->m_LastNetworkOUT = rStart[i]["last_network_out"].u.integer;
|
||||
// check name and host for match , when ServerStatus reload month traffic.
|
||||
if(strcmp(Client(ID)->m_aName, rStart[i]["name"].u.string.ptr)==0 && strcmp(Client(ID)->m_aHost, rStart[i]["host"].u.string.ptr)==0)
|
||||
{
|
||||
Client(ID)->m_LastNetworkIN = rStart[i]["last_network_in"].u.integer;
|
||||
Client(ID)->m_LastNetworkOUT = rStart[i]["last_network_out"].u.integer;
|
||||
}
|
||||
|
||||
ID++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user