summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-09 14:18:50 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-09 14:18:50 +0200
commit5866a765cc0e15d4631b443c553fd0011d01320e (patch)
treeab9a3fee809b78180bafa2db22500c17d7ad7b22 /src
parent85e8c259de499f76eab01b77901af37f4c15efce (diff)
core_whowas Don't display used bytes in /STATS z
Calculating this is tricky and the calculation was not realistic
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_whowas.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/coremods/core_whowas.cpp b/src/coremods/core_whowas.cpp
index 0227fdb51..5fb508fd0 100644
--- a/src/coremods/core_whowas.cpp
+++ b/src/coremods/core_whowas.cpp
@@ -80,14 +80,12 @@ CmdResult CommandWhowas::Handle (const std::vector<std::string>& parameters, Use
std::string CommandWhowas::GetStats()
{
int whowas_size = 0;
- int whowas_bytes = 0;
for (whowas_users::iterator i = whowas.begin(); i != whowas.end(); ++i)
{
whowas_set* n = i->second;
whowas_size += n->size();
- whowas_bytes += (sizeof(whowas_set) + ( sizeof(WhoWasGroup) * n->size() ) );
}
- return "Whowas entries: " +ConvToStr(whowas_size)+" ("+ConvToStr(whowas_bytes)+" bytes)";
+ return "Whowas entries: " + ConvToStr(whowas_size);
}
void CommandWhowas::AddToWhoWas(User* user)