mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +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:
+11
@@ -9,6 +9,17 @@
|
||||
#include "DCCSock.h"
|
||||
#include "User.h"
|
||||
|
||||
CDCCSock::~CDCCSock() {
|
||||
if ((m_pFile) && (!m_bNoDelFile)) {
|
||||
m_pFile->Close();
|
||||
delete m_pFile;
|
||||
}
|
||||
if (m_pUser) {
|
||||
m_pUser->AddBytesRead(GetBytesRead());
|
||||
m_pUser->AddBytesWritten(GetBytesWritten());
|
||||
}
|
||||
}
|
||||
|
||||
void CDCCSock::ReadData(const char* data, int len) {
|
||||
if (!m_pFile) {
|
||||
DEBUG_ONLY(cout << "File not open! closing get." << endl);
|
||||
|
||||
Reference in New Issue
Block a user