Ignore:
Timestamp:
Jul 27, 2007, 1:22:49 AM (15 years ago)
Author:
charles
Message:

speed improvements to tr_torrentStat() by folding two expensive & redundant functions together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.h

    r2481 r2509  
    3838uint64_t              tr_cpDownloadedValid( const tr_completion_t * );
    3939uint64_t              tr_cpLeftUntilComplete( const tr_completion_t * );
    40 uint64_t              tr_cpLeftUntilDone( const tr_completion_t * );
    4140float                 tr_cpPercentComplete( const tr_completion_t * );
    42 float                 tr_cpPercentDone( const tr_completion_t * );
     41void                  tr_cpDoneStats( const tr_completion_t  * cp,
     42                                      uint64_t               * setmeHaveBytes,
     43                                      uint64_t               * setmeTotalBytes );
     44
    4345
    4446/* Pieces */
Note: See TracChangeset for help on using the changeset viewer.