diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-18 21:39:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-18 21:39:51 +0000 |
commit | ee5cfbc96c4350e5d5c68c89b85c7c36a861029c (patch) | |
tree | f83dc28698f5764ef1403cadb8cdf47780598190 /src | |
parent | 07c7b5b61b8601d4651eab1c1984684d3a2fa6ae (diff) |
Properly clear the bandwidth measurements
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9923 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/socketengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |