This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".

The branch, u2_10_12_branch has been updated
       via  0bcf2e7a0809b1421d9aa03f2764881ae204f6f0 (commit)
       via  885f82ac7f08aa3184d9f552dcc7d982e120da7c (commit)
      from  fe38db1ae5417532d0367435d49df5ad9571e58a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0bcf2e7a0809b1421d9aa03f2764881ae204f6f0
Merge: fe38db1a 885f82ac
Author: Michael Poole <[email protected]>
Date:   Tue Aug 31 21:25:22 2021 -0400

    Merge branch 'motd_memory_count' of git://github.com/miwob/ircu2 into 
u2_10_12_branch
    
    Merge PR #gh-10

commit 885f82ac7f08aa3184d9f552dcc7d982e120da7c
Author: miwob <[email protected]>
Date:   Fri Dec 25 16:19:32 2020 +0100

    motd.c:motd_memory_count(): fixed invalid memory stats due to uncount bytes 
for ptr->hostmask and cache->path

diff --git a/ircd/motd.c b/ircd/motd.c
index bdad75ee..1454b676 100644
--- a/ircd/motd.c
+++ b/ircd/motd.c
@@ -470,12 +470,14 @@ motd_memory_count(struct Client *cptr)
     mt++;
     mtm += sizeof(struct Motd);
     mtm += ptr->path ? (strlen(ptr->path) + 1) : 0;
+    mtm += ptr->hostmask ? (strlen(ptr->hostmask) + 1) : 0;
   }
 
   for (cache = MotdList.cachelist; cache; cache = cache->next)
   {
     mtc++;
     mtcm += sizeof(struct MotdCache) + (MOTD_LINESIZE * (cache->count - 1));
+    mtcm += cache->path ? (strlen(cache->path) + 1) : 0;
   }
 
   if (MotdList.freelist)
-----------------------------------------------------------------------

Summary of changes:
 ircd/motd.c | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
Undernet IRC Server Source Code.

-- 
You received this message because you are subscribed to the Google Groups 
"Undernet Mailing List - [email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].

Reply via email to