Changeset 63a8b46 for router


Ignore:
Timestamp:
Mar 11, 2018 5:52:42 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
81808d4
Parents:
50268de8
Message:

UPnP: Detect pegged counter
Make public again for CLI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/UPnP.java

    r50268de8 r63a8b46  
    7272 * TODO: Advertise the node like the MDNS plugin does
    7373 * TODO: Implement EventListener and react on ip-change
     74 *
     75 * Public for CommandLine main()
    7476 */
    75 class UPnP extends ControlPoint implements DeviceChangeListener, EventListener {
     77public class UPnP extends ControlPoint implements DeviceChangeListener, EventListener {
    7678        private final Log _log;
    7779        private final I2PAppContext _context;
     
    640642        }
    641643
     644        private static final long UINT_MAX = (1L << 32) - 1;
     645
    642646        /**
    643647         *  @since 0.9.34
     
    649653                                long l = Long.parseLong(rv);
    650654                                rv = DataHelper.formatSize2Decimal(l);
     655                                // spec says roll over to 0 but mine doesn't
     656                                if (l == UINT_MAX)
     657                                    rv = "&gt; " + rv;
    651658                        } catch (NumberFormatException nfe) {}
    652659                }
Note: See TracChangeset for help on using the changeset viewer.