Ignore:
Timestamp:
Nov 8, 2008, 2:49:04 AM (10 years ago)
Author:
charles
Message:

more fucking around with the speed measurements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r7051 r7069  
    560560                                           int             isEnabled );
    561561
    562 void       tr_sessionGetSpeed( const tr_session  * session,
    563                                float             * overall_down_KiBs,
    564                                float             * overall_up_KiBs );
     562double     tr_sessionGetRawSpeed( const tr_session  * session,
     563                                  tr_direction        direection );
     564
     565double     tr_sessionGetPieceSpeed( const tr_session  * session,
     566                                    tr_direction        direection );
    565567
    566568int        tr_sessionIsSpeedLimitEnabled( const tr_session  * session,
     
    11851187tr_torrent_activity;
    11861188
     1189tr_torrent_activity tr_torrentGetActivity( tr_torrent * );
     1190
    11871191#define TR_STATUS_IS_ACTIVE( s ) ( ( s ) != TR_STATUS_STOPPED )
    11881192
     
    11941198}
    11951199tr_lockfile_state_t;
    1196 
    1197 tr_torrent_activity tr_torrentGetActivity( tr_torrent * );
    11981200
    11991201enum
     
    12571259    float    percentDone;
    12581260
    1259     /** Download speed in KiB/s */
    1260     double    rateDownload;
    1261 
    1262     /** Upload speed in KiB/s */
    1263     double    rateUpload;
     1261    /** Speed all data being sent for this torrent. (KiB/s)
     1262        This includes piece data, protocol messages, and TCP overhead */
     1263    double rawUploadSpeed;
     1264
     1265    /** Speed all data being received for this torrent. (KiB/s)
     1266        This includes piece data, protocol messages, and TCP overhead */
     1267    double rawDownloadSpeed;
     1268
     1269    /** Speed all piece being sent for this torrent. (KiB/s)
     1270        This ONLY counts piece data. */
     1271    double pieceUploadSpeed;
     1272
     1273    /** Speed all piece being received for this torrent. (KiB/s)
     1274        This ONLY counts piece data. */
     1275    double pieceDownloadSpeed;
    12641276
    12651277#define TR_ETA_NOT_AVAIL -1
Note: See TracChangeset for help on using the changeset viewer.