]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Floating-point math should have no place in an ircd
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 12 Feb 2010 17:06:45 +0000 (17:06 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 12 Feb 2010 17:06:45 +0000 (17:06 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12442 e03df62e-2008-0410-955e-edbf42e46eb7

include/ctables.h
include/inspircd.h
include/socketengine.h

index 9c2a6181c18576d8cbd29808dd9d81a36faff178..75795e48ca47c25759c66274db0d58e66564d2e3 100644 (file)
@@ -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
         */
index b4fd12026a2b35667d06a999cdc1b29ff808a1b6..16281f2cc8f2668f0d6cf63d1d44ddba3404cca3 100644 (file)
@@ -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;
index 4c897a7c079df3eb121c113b982d9059110df1dc..e23c74de48f1265913c6c7fe5aedc0a01b1d2da2 100644 (file)
@@ -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