mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
tweak the debugging messages a bit.
This commit is contained in:
parent
c1cffff4a4
commit
3e878aeba9
2 changed files with 4 additions and 4 deletions
|
@ -795,7 +795,7 @@ about ( void )
|
|||
gtk_about_dialog_set_wrap_license (a, TRUE);
|
||||
#endif
|
||||
gtk_about_dialog_set_logo_icon_name( a, "transmission-logo" );
|
||||
gtk_about_dialog_set_comments( a, _("A fast, easy BitTorrent client") );
|
||||
gtk_about_dialog_set_comments( a, _("A fast and easy BitTorrent client") );
|
||||
gtk_about_dialog_set_website( a, "http://transmission.m0k.org/" );
|
||||
gtk_about_dialog_set_copyright( a, _("Copyright 2005-2007 The Transmission Project") );
|
||||
gtk_about_dialog_set_authors( a, authors );
|
||||
|
|
|
@ -1497,7 +1497,7 @@ shouldPeerBeClosed( const Torrent * t, const tr_peer * peer, int peerCount )
|
|||
|
||||
/* if it's marked for purging, close it */
|
||||
if( peer->doPurge ) {
|
||||
tordbg( t, "purging peer %p because its doPurge flag is set", tr_peerIoAddrStr(&atom->addr,atom->port) );
|
||||
tordbg( t, "purging peer %s because its doPurge flag is set", tr_peerIoAddrStr(&atom->addr,atom->port) );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -1506,7 +1506,7 @@ shouldPeerBeClosed( const Torrent * t, const tr_peer * peer, int peerCount )
|
|||
const int clientIsSeed = tr_cpGetStatus( tor->completion ) != TR_CP_INCOMPLETE;
|
||||
const int peerIsSeed = atom->flags & ADDED_F_SEED_FLAG;
|
||||
if( peerIsSeed && clientIsSeed && ( tor->pexDisabled || (now-atom->time>=30) ) ) {
|
||||
tordbg( t, "purging peer %p because we're both seeds", tr_peerIoAddrStr(&atom->addr,atom->port) );
|
||||
tordbg( t, "purging peer %s because we're both seeds", tr_peerIoAddrStr(&atom->addr,atom->port) );
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -1526,7 +1526,7 @@ shouldPeerBeClosed( const Torrent * t, const tr_peer * peer, int peerCount )
|
|||
const time_t then = peer->pieceDataActivityDate;
|
||||
const int idleTime = then ? (now-then) : 0;
|
||||
if( idleTime > limit ) {
|
||||
tordbg( t, "purging peer %p it's been %d secs since we shared anything",
|
||||
tordbg( t, "purging peer %s because it's been %d secs since we shared anything",
|
||||
tr_peerIoAddrStr(&atom->addr,atom->port), idleTime );
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue