From: michael Date: Tue, 2 Jun 2015 16:02:32 +0000 (+0000) Subject: - stats.c:stats_openproxy(): break the loop early if a matching type in the STATS_PRO... X-Git-Tag: 1.0.7~21 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=b3df73f4faf7c8b3b92a82652a4a4cecf325fe9e;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/branches/1.0.x@6022 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