mirror of
https://github.com/znc/znc.git
synced 2026-08-10 10:52:59 +02:00
Keep the traffic stats more up-to-date (/msg *status traffic)
This now also adds the traffic caused by webadmin, schat and dcc bouncing to the stats. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1183 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -15,6 +15,17 @@ const unsigned int CDCCBounce::m_uiMaxDCCBuffer = 10 * 1024;
|
||||
// If less than this is in the buffer, the receiving side continues
|
||||
const unsigned int CDCCBounce::m_uiMinDCCBuffer = 2 * 1024;
|
||||
|
||||
CDCCBounce::~CDCCBounce() {
|
||||
if (m_pPeer) {
|
||||
m_pPeer->Shutdown();
|
||||
m_pPeer = NULL;
|
||||
}
|
||||
if (m_pUser) {
|
||||
m_pUser->AddBytesRead(GetBytesRead());
|
||||
m_pUser->AddBytesWritten(GetBytesWritten());
|
||||
}
|
||||
}
|
||||
|
||||
void CDCCBounce::ReadLine(const CString& sData) {
|
||||
CString sLine = sData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user