From f5d5cee19ae1153adae20ee8143d18d61b407b2c Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 12 Feb 2010 17:06:45 +0000 Subject: Floating-point math should have no place in an ircd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12442 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/ctables.h | 4 ++-- include/inspircd.h | 4 ++-- include/socketengine.h | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/ctables.h b/include/ctables.h index 9c2a6181c..75795e48c 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -108,11 +108,11 @@ class CoreExport Command : public ServiceProvider /** used by /stats m */ - long double use_count; + long use_count; /** used by /stats m */ - long double total_bytes; + long total_bytes; /** True if the command is disabled to non-opers */ diff --git a/include/inspircd.h b/include/inspircd.h index b4fd12026..16281f2cc 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -214,10 +214,10 @@ class serverstats unsigned long statsConnects; /** Total bytes of data transmitted */ - double statsSent; + unsigned long statsSent; /** Total bytes of data received */ - double statsRecv; + unsigned long statsRecv; /** Cpu usage at last sample */ timeval LastCPU; diff --git a/include/socketengine.h b/include/socketengine.h index 4c897a7c0..e23c74de4 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -243,10 +243,10 @@ class CoreExport SocketEngine void SetEventMask(EventHandler* eh, int value); public: - double TotalEvents; - double ReadEvents; - double WriteEvents; - double ErrorEvents; + unsigned long TotalEvents; + unsigned long ReadEvents; + unsigned long WriteEvents; + unsigned long ErrorEvents; /** Constructor. * The constructor transparently initializes -- cgit v1.2.3