Ignore:
Timestamp:
Sep 26, 2011, 6:18:48 AM (10 years ago)
Author:
jordan
Message:

(trunk libT) add several more tr_completion assertions to smoke out the (sizeWhenDone() < sizeNow()) error reported in the forums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.h

    r12262 r12918  
    7777uint64_t          tr_cpSizeWhenDone( const tr_completion * );
    7878
     79uint64_t          tr_cpLeftUntilDone( const tr_completion * );
     80
    7981void              tr_cpGetAmountDone( const   tr_completion * completion,
    8082                                      float                 * tab,
     
    9294{
    9395    return tr_torrentInfo(cp->tor)->totalSize - cp->sizeNow;
    94 }
    95 
    96 static inline uint64_t
    97 tr_cpLeftUntilDone( const tr_completion * cp )
    98 {
    99     return tr_cpSizeWhenDone( cp ) - cp->sizeNow;
    10096}
    10197
Note: See TracChangeset for help on using the changeset viewer.