Changeset 3892


Ignore:
Timestamp:
Nov 19, 2007, 8:07:21 PM (15 years ago)
Author:
charles
Message:

add "this session" stats stubs for BentMyWookie?

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r3889 r3892  
    342342
    343343void
    344 tr_getGlobalStats( const tr_handle * handle, tr_global_stats * setme )
     344tr_getSessionStats( const tr_handle * handle, tr_session_stats * setme )
    345345{
    346346    assert( handle != NULL );
     
    356356    setme->sessionCount     = 666;
    357357    setme->secondsActive    = 2112;
     358}
     359
     360void
     361tr_getAccumulatedStats( const tr_handle * handle, tr_session_stats * setme )
     362{
     363    tr_getSessionStats( handle, setme );
    358364}
    359365
  • trunk/libtransmission/transmission.h

    r3889 r3892  
    117117**/
    118118
    119 typedef struct tr_global_stats
     119typedef struct tr_session_stats
    120120{
    121121    uint64_t downloadedGigs;  /* total down / GiB */
     
    128128    uint64_t secondsActive;   /* how long Transmisson's been running */
    129129}
    130 tr_global_stats;
    131 
    132 void tr_getGlobalStats( const tr_handle * handle, tr_global_stats * setme );
     130tr_session_stats;
     131
     132/* stats accumulated across all the times that Transmission's been used. */
     133void tr_getCumulativeSessionStats( const tr_handle   * handle,
     134                                   tr_session_stats  * setme );
     135
     136/* stats accumulated during this current session.
     137   'sessionCount' is pretty useless here, eh? :) */
     138void tr_getSessionStats( const tr_handle   * handle,
     139                         tr_session_stats  * setme );
    133140
    134141
Note: See TracChangeset for help on using the changeset viewer.