add a couple of debug messages to trac down why Lacrocivious' stats aren't being saved
This commit is contained in:
parent
c16b901c93
commit
d659df1093
2
NEWS
2
NEWS
|
@ -11,8 +11,8 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
|
||||||
+ Updated Dock badge images
|
+ Updated Dock badge images
|
||||||
- GTK+
|
- GTK+
|
||||||
+ Inhibit hibernation when downloading
|
+ Inhibit hibernation when downloading
|
||||||
+ Various bug fixes and usability improvements
|
|
||||||
+ Use XDG basedir spec for configuration files
|
+ Use XDG basedir spec for configuration files
|
||||||
|
+ Various bug fixes and usability improvements
|
||||||
|
|
||||||
1.11 (2008/04/04)
|
1.11 (2008/04/04)
|
||||||
- Mac
|
- Mac
|
||||||
|
|
|
@ -422,6 +422,7 @@ tr_close( tr_handle * h )
|
||||||
const int maxwait_msec = SHUTDOWN_MAX_SECONDS * 1000;
|
const int maxwait_msec = SHUTDOWN_MAX_SECONDS * 1000;
|
||||||
const uint64_t deadline = tr_date( ) + maxwait_msec;
|
const uint64_t deadline = tr_date( ) + maxwait_msec;
|
||||||
|
|
||||||
|
tr_deepLog( __FILE__, __LINE__, NULL, "shutting down transmission session %p", h );
|
||||||
tr_statsClose( h );
|
tr_statsClose( h );
|
||||||
|
|
||||||
tr_runInEventThread( h, tr_closeAllConnections, h );
|
tr_runInEventThread( h, tr_closeAllConnections, h );
|
||||||
|
|
|
@ -77,6 +77,7 @@ saveCumulativeStats( const tr_handle * handle, const tr_session_stats * s )
|
||||||
tr_bencDictAddInt( &top, "seconds-active", s->secondsActive );
|
tr_bencDictAddInt( &top, "seconds-active", s->secondsActive );
|
||||||
|
|
||||||
getFilename( handle, filename, sizeof(filename) );
|
getFilename( handle, filename, sizeof(filename) );
|
||||||
|
tr_deepLog( __FILE__, __LINE__, NULL, "Saving stats to \"%s\"", filename );
|
||||||
tr_bencSaveFile( filename, &top );
|
tr_bencSaveFile( filename, &top );
|
||||||
|
|
||||||
tr_bencFree( &top );
|
tr_bencFree( &top );
|
||||||
|
|
Loading…
Reference in New Issue