From: michael Date: Tue, 2 Jun 2015 16:01:55 +0000 (+0000) Subject: - stats.c:stats_openproxy(): break the loop early if a matching type in the STATS_PRO... X-Git-Tag: 1.1.0beta1~72 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=82c75a229c9eb1d7b074f03be60974758fc992ce;p=hopm.git - stats.c:stats_openproxy(): break the loop early if a matching type in the STATS_PROXIES table has been found git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6021 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/stats.c b/src/stats.c index 3bb096b..1ad95bb 100644 --- a/src/stats.c +++ b/src/stats.c @@ -84,8 +84,13 @@ void stats_openproxy(int type) { for (unsigned int i = 0; i < (sizeof(STATS_PROXIES) / sizeof(struct StatsHash)); ++i) + { if (STATS_PROXIES[i].type == type) + { ++STATS_PROXIES[i].count; + break; + } + } } /* stats_connect