Author: toad
Date: 2008-03-13 20:41:45 +0000 (Thu, 13 Mar 2008)
New Revision: 18517

Modified:
   trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java
Log:
Indenting

Modified: trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java 2008-03-13 
20:41:24 UTC (rev 18516)
+++ trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java 2008-03-13 
20:41:45 UTC (rev 18517)
@@ -43,13 +43,13 @@
        private void _addInfo(String key, int inbytes, int outbytes) {
                rotate();
                if(ENABLE_PER_ADDRESS_TRACKING) {
-               StatisticEntry entry = (StatisticEntry)targets.get(key);
-               if (entry == null) {
-                       entry = new StatisticEntry();
-                       targets.put(key, entry);
+                       StatisticEntry entry = (StatisticEntry)targets.get(key);
+                       if (entry == null) {
+                               entry = new StatisticEntry();
+                               targets.put(key, entry);
+                       }
+                       entry.addData((inbytes>0)?inbytes:0, 
(outbytes>0)?outbytes:0);
                }
-               entry.addData((inbytes>0)?inbytes:0, (outbytes>0)?outbytes:0);
-               }
                synchronized(this) {
                        totalbytesout += (outbytes>0)?outbytes:0;
                        totalbytesin += (inbytes>0)?inbytes:0;


Reply via email to