Changeset 193f0bb


Ignore:
Timestamp:
Aug 11, 2013 8:21:06 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
def30c5
Parents:
b7a3b7b
Message:

More elegant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/ConnectionPacketHandler.java

    rb7a3b7b r193f0bb  
    66import net.i2p.I2PException;
    77import net.i2p.data.Destination;
    8 import net.i2p.stat.FrequencyStat;
    9 import net.i2p.stat.RateStat;
    108import net.i2p.util.Log;
    119import net.i2p.util.SimpleScheduler;
     
    203201                        _log.debug("immediate ack");
    204202                    con.ackImmediately();
    205                     FrequencyStat fs = _context.statManager().getFrequency("stream.ack.dup.immediate");
    206                     if (fs != null)
    207                         fs.eventOccurred();
     203                    _context.statManager().updateFrequency("stream.ack.dup.immediate");
    208204                } else {
    209205                    final long delay = nextSendTime - now;
     
    584580                    _log.debug("Ack dup on " + _con + ", but we have sent (" + (_con.getLastSendTime()-_created) + ")");
    585581            }
    586             RateStat rs = _context.statManager().getRate("stream.ack.dup.sent");
    587             if (rs != null)
    588                 rs.addData(sent ? 1 : 0);
     582            _context.statManager().addRateData("stream.ack.dup.sent", sent ? 1 : 0);
    589583        }
    590584    }
Note: See TracChangeset for help on using the changeset viewer.