From 742d519b6766ca39fab713016a09ee39b27a7527 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 Jun 2008 20:34:12 +0000 Subject: 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 --- src/socketengine.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3