Ignore:
Timestamp:
Jan 5, 2009, 4:27:54 AM (12 years ago)
Author:
charles
Message:

(trunk libT) fix the much-hated "Assertion failed: (tr_isPeerIo( io ))". Also, repeated calls to tr_date() were taking up about 78% of the time in tr_stat(), so instead of calling multiple times, call it once in tr_stat() and pass that value around to the functions that need it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.h

    r7580 r7618  
    203203/** @brief Get the raw total of bytes read or sent by this bandwidth subtree. */
    204204double tr_bandwidthGetRawSpeed( const tr_bandwidth  * bandwidth,
    205                                 tr_direction          direction );
     205                                const uint64_t        now,
     206                                const tr_direction    direction );
    206207
    207208/** @brief Get the number of piece data bytes read or sent by this bandwidth subtree. */
    208209double tr_bandwidthGetPieceSpeed( const tr_bandwidth  * bandwidth,
    209                                   tr_direction          direction );
     210                                  const uint64_t        now,
     211                                  const tr_direction    direction );
    210212
    211213/**
Note: See TracChangeset for help on using the changeset viewer.