Changeset 7039
- Timestamp:
- Nov 4, 2008, 5:37:51 PM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-io.c
r6991 r7039 31 31 #include "peer-io.h" 32 32 #include "ratecontrol.h" 33 #include "stats.h" /* tr_statsAddUploaded(), tr_statsAddDownloaded() */ 33 34 #include "trevent.h" 34 35 #include "utils.h" … … 182 183 b->bytesUsed += n; 183 184 tr_rcTransferred( io->speedometer[TR_UP], n ); 185 tr_statsAddUploaded( io->session, n ); 184 186 dbgmsg( io, 185 187 "wrote %zu bytes to peer... upload bytesLeft is now %zu", … … 214 216 b->bytesUsed += n; 215 217 tr_rcTransferred( io->speedometer[TR_DOWN], n ); 218 tr_statsAddDownloaded( io->session, n ); 216 219 dbgmsg( io, 217 220 "%zu new input bytes. bytesUsed is %zu, bytesLeft is %zu", -
trunk/libtransmission/peer-mgr.c
r6965 r7039 32 32 #include "peer-msgs.h" 33 33 #include "ptrarray.h" 34 #include "stats.h" /* tr_statsAddDownloaded */35 34 #include "torrent.h" 36 35 #include "trevent.h" … … 1009 1008 tor->activityDate = now; 1010 1009 tor->uploadedCur += e->length; 1011 tr_statsAddUploaded( tor->session, e->length );1012 1010 if( peer ) 1013 1011 { … … 1031 1029 if( peer ) 1032 1030 tor->downloadedCur += e->length; 1033 tr_statsAddDownloaded( tor->session, e->length );1034 1031 if( peer ) { 1035 1032 struct peer_atom * a = getExistingAtom( t, &peer->in_addr ); -
trunk/libtransmission/stats.h
r6795 r7039 14 14 #define TR_STATS_H 15 15 16 void tr_statsInit ( tr_handle * handle);16 void tr_statsInit ( tr_session * session ); 17 17 18 void tr_statsClose ( tr_handle * handle);18 void tr_statsClose ( tr_session * session ); 19 19 20 void tr_statsAddUploaded ( tr_handle * handle,21 uint32_tbytes );20 void tr_statsAddUploaded ( tr_session * session, 21 uint32_t bytes ); 22 22 23 void tr_statsAddDownloaded ( tr_handle * handle,24 uint32_tbytes );23 void tr_statsAddDownloaded ( tr_session * session, 24 uint32_t bytes ); 25 25 26 void tr_statsFileCreated ( tr_handle * handle);26 void tr_statsFileCreated ( tr_session * session ); 27 27 28 28 #endif
Note: See TracChangeset
for help on using the changeset viewer.