From 689996cb8856af43a033eb5ca1cb9df7475c0854 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 8 Feb 2014 22:40:30 +0100 Subject: Move socketengine stats into a new class --- src/socketengines/socketengine_select.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/socketengines/socketengine_select.cpp') diff --git a/src/socketengines/socketengine_select.cpp b/src/socketengines/socketengine_select.cpp index 7aaa7aaf7..be380cb46 100644 --- a/src/socketengines/socketengine_select.cpp +++ b/src/socketengines/socketengine_select.cpp @@ -135,7 +135,7 @@ int SelectEngine::DispatchEvents() if (has_error) { - ErrorEvents++; + stats.ErrorEvents++; socklen_t codesize = sizeof(int); int errcode = 0; @@ -148,7 +148,7 @@ int SelectEngine::DispatchEvents() if (has_read) { - ReadEvents++; + stats.ReadEvents++; SetEventMask(ev, ev->GetEventMask() & ~FD_READ_WILL_BLOCK); ev->HandleEvent(EVENT_READ); if (ev != GetRef(i)) @@ -157,7 +157,7 @@ int SelectEngine::DispatchEvents() if (has_write) { - WriteEvents++; + stats.WriteEvents++; int newmask = (ev->GetEventMask() & ~(FD_WRITE_WILL_BLOCK | FD_WANT_SINGLE_WRITE)); this->OnSetEvent(ev, ev->GetEventMask(), newmask); SetEventMask(ev, newmask); -- cgit v1.2.3