mirror of https://github.com/cppla/ServerStatus
修复增删节点月流量错误适配,置0, todo:等待全适配
parent
5078381215
commit
e274b09c0f
|
@ -438,8 +438,12 @@ int CMain::ReadConfig()
|
||||||
if(ID < 0 || ID >= NET_MAX_CLIENTS)
|
if(ID < 0 || ID >= NET_MAX_CLIENTS)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Client(ID)->m_LastNetworkIN = rStart[i]["last_network_in"].u.integer;
|
// check name and host for match , when ServerStatus reload month traffic.
|
||||||
Client(ID)->m_LastNetworkOUT = rStart[i]["last_network_out"].u.integer;
|
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++;
|
ID++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue