diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-18 20:27:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-18 20:27:47 +0000 |
commit | a3802dee4bdfcf3dc11df09c59e6ed1912fbadd9 (patch) | |
tree | 0c8a3cc293f02828aebedbbb1f5228cd627f3b2a /src/socketengines | |
parent | ed6fcd4a50f3a0d84ae07a8a0011b193e00cf088 (diff) |
Measure bandwidth statistics from the socket engine (kiloBITS per second in, out, total) and display them in /stats z plus send them via the named pipe to the windows gui
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9918 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengines')
-rw-r--r-- | src/socketengines/socketengine_iocp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socketengines/socketengine_iocp.cpp b/src/socketengines/socketengine_iocp.cpp index c1e97ce74..2a0c4d416 100644 --- a/src/socketengines/socketengine_iocp.cpp +++ b/src/socketengines/socketengine_iocp.cpp @@ -494,6 +494,7 @@ int IOCPEngine::GetSockName(EventHandler* fd, sockaddr *name, socklen_t* namelen int IOCPEngine::RecvFrom(EventHandler* fd, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen) { + this->UpdateStats(len, 0); udp_overlap * ov = NULL; if (!fd->GetExt("windows_readevent", ov)) return -1; |