summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-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))