- stats.c:stats_openproxy(): break the loop early if a matching type in the STATS_PRO...
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 2 Jun 2015 16:02:32 +0000 (16:02 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 2 Jun 2015 16:02:32 +0000 (16:02 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@6022 82007160-df01-0410-b94d-b575c5fd34c7

src/stats.c

index 3bb096bf60b1dcd04d5fb6a82d7ea67c96565ceb..1ad95bba4aa96498a5a50656d4a477bb3d8d089f 100644 (file)
@@ -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