Changeset 11984


Ignore:
Timestamp:
Feb 19, 2011, 5:52:02 PM (11 years ago)
Author:
jordan
Message:

(trunk libutp) silence a couple of useless asserts.

From https://github.com/bittorrent/libutp/commit/577e03dc3e14a68a0ecebc0e46b66dee77af3bfe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/libutp/utp.cpp

    r11959 r11984  
    16291629        assert(our_delay != INT_MAX);
    16301630        assert(our_delay >= 0);
    1631         assert(our_hist.get_value() >= 0);
    16321631
    16331632        SOCKADDR_STORAGE sa = addr.get_sockaddr_storage();
     
    19431942                :(uint32(pf1->reply_micro)==INT_MAX?0:uint32(pf1->reply_micro));
    19441943
    1945         assert(conn->our_hist.get_value() >= 0);
    19461944        // if the actual delay is 0, it means the other end
    19471945        // hasn't received a sample from us yet, and doesn't
     
    19501948        prev_delay_base = conn->our_hist.delay_base;
    19511949        if (actual_delay != 0) conn->our_hist.add_sample(actual_delay);
    1952         assert(conn->our_hist.get_value() >= 0);
    19531950
    19541951        // if our new delay base is less than our previous one
Note: See TracChangeset for help on using the changeset viewer.