From 5866a765cc0e15d4631b443c553fd0011d01320e Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 9 Jul 2014 14:18:50 +0200 Subject: core_whowas Don't display used bytes in /STATS z Calculating this is tricky and the calculation was not realistic --- src/coremods/core_whowas.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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& 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) -- cgit v1.2.3