Changeset 5be077e2 for router


Ignore:
Timestamp:
Dec 2, 2016 6:52:37 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f461d48
Parents:
5b31540
Message:

Clean up single char indexOf()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillMonitorJob.java

    r5b31540 r5be077e2  
    171171            ffcount++;
    172172        int good = ffcount - failcount;
    173         boolean happy = getContext().router().getRouterInfo().getCapabilities().indexOf("R") >= 0;
     173        boolean happy = getContext().router().getRouterInfo().getCapabilities().indexOf('R') >= 0;
    174174        // TODO - limit may still be too high
    175175        // For reference, the avg lifetime job lag on my Pi is 6.
Note: See TracChangeset for help on using the changeset viewer.