diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-18 20:34:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-18 20:34:12 +0000 |
commit | 742d519b6766ca39fab713016a09ee39b27a7527 (patch) | |
tree | af59dddcd9d0f50f93494e5828948f47bef019b8 /src/socketengine.cpp | |
parent | cdbc474bbc09d699821185d32283801b24a72183 (diff) |
another fix just to piss off people who are trying to build every svn revision
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9920 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r-- | src/socketengine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 3cb262652..51140ee02 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -240,6 +240,7 @@ void SocketEngine::UpdateStats(size_t len_in, size_t len_out) void SocketEngine::GetStats(float &kbitpersec_in, float &kbitpersec_out, float &kbitpersec_total) { + UpdateStats(0, 0); /* Forces emptying of the values if its been more than a second */ float in_kbit = indata * 8; float out_kbit = outdata * 8; kbitpersec_total = ((in_kbit + out_kbit) / 1024); |