From 250c92805cb8a25edd15f04fa673fbfa59c469fe Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 19 Jul 2006 14:56:47 +0000 Subject: Change counters to unsigned long to prevent overflow to negative counts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4449 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'include/inspircd.h') diff --git a/include/inspircd.h b/include/inspircd.h index 109e1f2be..4d7205b5a 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -55,17 +55,17 @@ template inline std::string ConvToStr(const T &in) class serverstats : public classbase { public: - int statsAccept; - int statsRefused; - int statsUnknown; - int statsCollisions; - int statsDns; - int statsDnsGood; - int statsDnsBad; - int statsConnects; - int statsSent; - int statsRecv; - int BoundPortCount; + unsigned long statsAccept; + unsigned long statsRefused; + unsigned long statsUnknown; + unsigned long statsCollisions; + unsigned long statsDns; + unsigned long statsDnsGood; + unsigned long statsDnsBad; + unsigned long statsConnects; + unsigned long statsSent; + unsigned long statsRecv; + unsigned long BoundPortCount; serverstats() { -- cgit v1.2.3