]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
core_whowas Don't display used bytes in /STATS z
authorAttila Molnar <attilamolnar@hush.com>
Wed, 9 Jul 2014 12:18:50 +0000 (14:18 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 9 Jul 2014 12:18:50 +0000 (14:18 +0200)
Calculating this is tricky and the calculation was not realistic

src/coremods/core_whowas.cpp

index 0227fdb51f15ec1b414e0ba5fd190c6e5e1830d2..5fb508fd077d57e0cf4613a56f1b3a82569f1398 100644 (file)
@@ -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)