Changeset c85931c for apps/addressbook


Ignore:
Timestamp:
Mar 23, 2011 2:22:19 AM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d6999a33
Parents:
7e0d0e2
Message:

log tweaks

Location:
apps/addressbook/java/src/net/i2p/addressbook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/addressbook/java/src/net/i2p/addressbook/Daemon.java

    r7e0d0e2 rc85931c  
    127127            AddressBook sub = iter.next();
    128128            long end = System.currentTimeMillis();
    129             if (DEBUG && log != null)
     129            // SubscriptionIterator puts in a dummy AddressBook with no location if no fetch is done
     130            if (DEBUG && log != null && sub.getLocation() != null)
    130131                log.append("Fetch of " + sub.getLocation() + " took " + (end - start));
    131132            start = end;
    132             int old = 0, nnew = 0, invalid = 0, conflict = 0;
     133            int old = 0, nnew = 0, invalid = 0, conflict = 0, total = 0;
    133134            for (Iterator<Map.Entry<String, String>> eIter = sub.iterator(); eIter.hasNext(); ) {
    134135                Map.Entry<String, String> entry = eIter.next();
     
    198199                    invalid++;
    199200                }
    200             }
    201             if (DEBUG && log != null) {
     201                total++;
     202            }
     203            if (DEBUG && log != null && total > 0) {
    202204                log.append("Merge of " + sub.getLocation() + " into " + router +
    203205                           " took " + (System.currentTimeMillis() - start) + " ms with " +
     206                           total + " total, " +
    204207                           nnew + " new, " +
    205208                           old + " old, " +
  • apps/addressbook/java/src/net/i2p/addressbook/DaemonThread.java

    r7e0d0e2 rc85931c  
    6767    /**
    6868     *  The NamingServiceUpdater interface
     69     *  @param options ignored
    6970     *  @since 0.8.6
    7071     */
Note: See TracChangeset for help on using the changeset viewer.