diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-19 15:03:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-19 15:03:26 +0000 |
commit | 69ae63ecd25c63b4f6d446fae28af9c8d1caac4d (patch) | |
tree | 2d8b56938274a100844948f93abc9527cf2b899f /include/inspircd.h | |
parent | 250c92805cb8a25edd15f04fa673fbfa59c469fe (diff) |
Change stats recv/send to double, so they can hold truly massive numbers of transferred bytes (they would overflow after about 6 weeks on a busy net otherwise)
Fix some warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4450 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 4d7205b5a..8e75c256c 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -63,15 +63,16 @@ class serverstats : public classbase unsigned long statsDnsGood; unsigned long statsDnsBad; unsigned long statsConnects; - unsigned long statsSent; - unsigned long statsRecv; + double statsSent; + double statsRecv; unsigned long BoundPortCount; serverstats() { statsAccept = statsRefused = statsUnknown = 0; statsCollisions = statsDns = statsDnsGood = 0; - statsDnsBad = statsConnects = statsSent = statsRecv = 0; + statsDnsBad = statsConnects = 0; + statsSent = statsRecv = 0.0; BoundPortCount = 0; } }; |