Add traffic tracking support to CSocket
Now every module that uses CSocket automatically gets its generated traffic counted. Those which use Csock directly should be shot and burried anyway ;) This adds CModule::IsGlobal(). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1283 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
1 parent
03a13f6d51
commit
08088be7d6
4 files changed
+15
-11
No files matched your search
@@ -322,9 +322,6 @@ CWebAdminSock::~CWebAdminSock() {
|
||||
CWebAdminAuth* pAuth = (CWebAdminAuth*) &(*m_spAuth);
|
||||
pAuth->SetWebAdminSock(NULL);
|
||||
}
|
||||
|
||||
CZNC::Get().AddBytesRead(GetBytesRead());
|
||||
CZNC::Get().AddBytesWritten(GetBytesWritten());
|
||||
}
|
||||
|
||||
bool CWebAdminSock::OnPageRequest(const CString& sURI, CString& sPageRet) {
|
||||
|
||||
Reference in new issue
Block a user