mirror of
https://github.com//cppla/ServerStatus
synced 2025-07-06 09:25:59 +08:00
add info for change
This commit is contained in:
parent
3f0790db81
commit
b8a717a374
@ -265,6 +265,7 @@ void CMain::JSONUpdateThread(void *pUser)
|
||||
str_format(aUptime, sizeof(aUptime), "%02d:%02d:%02d", (int)(pClients[i].m_Stats.m_Uptime/60.0/60.0), (int)((pClients[i].m_Stats.m_Uptime/60)%60), (int)((pClients[i].m_Stats.m_Uptime)%60));
|
||||
|
||||
// track month network traffic, diff: 2021-10-01 00:10
|
||||
// if ServerStatus is active then last_network_in/out is month traffic diff, else last_network_in/out is last record flag.
|
||||
time_t currentStamp = (long long)time(/*ago*/0);
|
||||
if(0 == pClients[i].m_LastNetworkIN || (localtime(¤tStamp)->tm_mday == pClients[i].m_aMonthStart && localtime(¤tStamp)->tm_hour == 0 && localtime(¤tStamp)->tm_min < 10))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user