summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-17 22:31:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-17 22:31:33 +0000
commit23d635950d15eea741e41af6b3109ccfc3196cb6 (patch)
tree9589bcb209c4cb8a18ac8ad0466a63d0d631dff1 /include
parent7713634b1a5153c49fd39546eda649b2433ef2d0 (diff)
Change bytes-used counter for commands (used by /stats m) as in excessive use (see BARAFRANCA!) they can wrap around past 2 million commands.
(YES REALLY. THEY ISSUED > 2 MILLION PRIVMSGS) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6590 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/ctables.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ctables.h b/include/ctables.h
index 9eae05257..92a0659af 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -65,7 +65,7 @@ class command_t : public Extensible
long use_count;
/** used by /stats m
*/
- long total_bytes;
+ float total_bytes;
/** used for resource tracking between modules
*/
std::string source;
@@ -92,7 +92,8 @@ class command_t : public Extensible
*/
command_t(InspIRCd* Instance, const std::string &cmd, char flags, int minpara, int before_reg = false) : ServerInstance(Instance), command(cmd), flags_needed(flags), min_params(minpara), disabled(false), works_before_reg(before_reg)
{
- use_count = total_bytes = 0;
+ use_count = 0;
+ total_bytes = 0;
source = "<core>";
syntax = "";
}