Ignore:
Timestamp:
Sep 27, 2007, 3:30:22 AM (15 years ago)
Author:
charles
Message:

round 2 of minor revisions to tr_stat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r3197 r3201  
    815815        tr_bitfield * available = tr_peerMgrGetAvailable( tor->handle->peerMgr,
    816816                                                          tor->info.hash );
    817         s->nonDndSize = 0;
    818         s->nonDndAvailable = 0;
     817        s->desiredSize = 0;
     818        s->desiredAvailable = 0;
    819819
    820820        for( i=0; i<tor->info.pieceCount; ++i ) {
    821821            if( !tor->info.pieces[i].dnd ) {
    822                 s->nonDndSize += tor->info.pieceSize;
     822                s->desiredSize += tor->info.pieceSize;
    823823                if( tr_bitfieldHas( available, i ) )
    824                     s->nonDndAvailable += tor->info.pieceSize;
     824                    s->desiredAvailable += tor->info.pieceSize;
    825825            }
    826826        }
Note: See TracChangeset for help on using the changeset viewer.