mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 19:58:24 +00:00
Resent time stats
This commit is contained in:
@@ -1105,6 +1105,10 @@ void EQ::Net::DaybreakConnection::ProcessResend(int stream)
|
||||
}
|
||||
m_stats.resent_packets++;
|
||||
|
||||
m_stats.resent_time_min = std::min(m_stats.resent_time_min, (uint64_t)time_since_last_send.count());
|
||||
m_stats.resent_time_max = std::max(m_stats.resent_time_max, (uint64_t)time_since_last_send.count());
|
||||
m_stats.resent_time_average = (m_stats.resent_time_average / 2) + (time_since_last_send.count() / 2);
|
||||
|
||||
InternalBufferedSend(p);
|
||||
entry.second.last_sent = now;
|
||||
entry.second.times_resent++;
|
||||
@@ -1134,6 +1138,10 @@ void EQ::Net::DaybreakConnection::ProcessResend(int stream)
|
||||
}
|
||||
m_stats.resent_packets++;
|
||||
|
||||
m_stats.resent_time_min = std::min(m_stats.resent_time_min, (uint64_t)time_since_last_send.count());
|
||||
m_stats.resent_time_max = std::max(m_stats.resent_time_max, (uint64_t)time_since_last_send.count());
|
||||
m_stats.resent_time_average = (m_stats.resent_time_average / 2) + (time_since_last_send.count() / 2);
|
||||
|
||||
InternalBufferedSend(p);
|
||||
entry.second.last_sent = now;
|
||||
entry.second.times_resent++;
|
||||
|
||||
@@ -91,6 +91,9 @@ namespace EQ
|
||||
resent_packets = 0;
|
||||
resent_fragments = 0;
|
||||
resent_full = 0;
|
||||
resent_time_min = 0;
|
||||
resent_time_max = 0;
|
||||
resent_time_average = 0;
|
||||
datarate_remaining = 0.0;
|
||||
}
|
||||
|
||||
@@ -111,6 +114,9 @@ namespace EQ
|
||||
uint64_t resent_packets;
|
||||
uint64_t resent_fragments;
|
||||
uint64_t resent_full;
|
||||
uint64_t resent_time_min;
|
||||
uint64_t resent_time_max;
|
||||
uint64_t resent_time_average;
|
||||
double datarate_remaining;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user