summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-18 18:04:39 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-18 18:04:39 +0000
commit130023be47af61b38214ac293aba3a51e044a411 (patch)
tree5e254e522758c64d452151d3329ecfca8ef5b4fe /src
parentf9d2a1c8277436f49d4700327c66712242ccfd31 (diff)
Apparently casting to float is not sufficient to cause a conversion
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11126 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/override_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/override_map.cpp b/src/modules/m_spanningtree/override_map.cpp
index 45513a276..454eef5fc 100644
--- a/src/modules/m_spanningtree/override_map.cpp
+++ b/src/modules/m_spanningtree/override_map.cpp
@@ -163,7 +163,7 @@ int ModuleSpanningTree::HandleMap(const std::vector<std::string>& parameters, Us
}
}
- float avg_users = ((float)totusers) / ((float)totservers);
+ float avg_users = totusers * 1.0 / totservers;
// dump the whole lot to the user.
if (IS_LOCAL(user))