1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

sloppy, sloppy. what should've been 1 commit has been 5.

This commit is contained in:
Charles Kerr 2007-11-26 20:44:53 +00:00
parent 033ee7ff58
commit 81ea9b4abd

View file

@ -119,14 +119,12 @@ tr_statsInit( tr_handle * handle )
stats->cumulative.sessionCount++; stats->cumulative.sessionCount++;
stats->startTime = time(NULL); stats->startTime = time(NULL);
handle->sessionStats = stats; handle->sessionStats = stats;
fprintf( stderr, "handle %p sessionStats is %p\n", handle, handle->sessionStats );
} }
void void
tr_statsClose( tr_handle * handle ) tr_statsClose( tr_handle * handle )
{ {
tr_session_stats tmp; tr_session_stats tmp;
fprintf( stderr, "handle %p sessionStats is %p\n", handle, handle->sessionStats );
tr_getCumulativeSessionStats( handle, &tmp ); tr_getCumulativeSessionStats( handle, &tmp );
saveCumulativeStats( &tmp ); saveCumulativeStats( &tmp );