summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-12 17:06:45 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-12 17:06:45 +0000
commitf5d5cee19ae1153adae20ee8143d18d61b407b2c (patch)
treee2b6d3470f53c3b7eea9ea4a6591db59197a406a /include
parent554f1eff13de430ea73097970717df662bb83976 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/ctables.h4
-rw-r--r--include/inspircd.h4
-rw-r--r--include/socketengine.h8
3 files changed, 8 insertions, 8 deletions
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