From ee5cfbc96c4350e5d5c68c89b85c7c36a861029c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 Jun 2008 21:39:51 +0000 Subject: Properly clear the bandwidth measurements git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9923 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 51140ee02..0e3a1ee5f 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -229,7 +229,7 @@ void SocketEngine::RecoverFromFork() void SocketEngine::UpdateStats(size_t len_in, size_t len_out) { - if (lastempty + 1 > time(NULL)) + if (lastempty != time(NULL)) { lastempty = time(NULL); indata = outdata = 0; -- cgit v1.2.3