mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk) don't display "Got a list of 0 peers" for currently paused torrents
This commit is contained in:
@@ -1327,13 +1327,13 @@ printTrackersImpl( tr_benc * trackerStats )
|
|||||||
printf( "\n" );
|
printf( "\n" );
|
||||||
printf( " Tracker %d: %s\n", (int)(id), host );
|
printf( " Tracker %d: %s\n", (int)(id), host );
|
||||||
if( isBackup )
|
if( isBackup )
|
||||||
printf( " Backup on tier #%d\n", (int)tier );
|
printf( " Backup on tier %d\n", (int)tier );
|
||||||
else
|
else
|
||||||
printf( " Active in tier #%d\n", (int)tier );
|
printf( " Active in tier %d\n", (int)tier );
|
||||||
|
|
||||||
if( !isBackup )
|
if( !isBackup )
|
||||||
{
|
{
|
||||||
if( hasAnnounced )
|
if( hasAnnounced && announceState != TR_TRACKER_INACTIVE )
|
||||||
{
|
{
|
||||||
tr_strltime( buf, now - lastAnnounceTime, sizeof( buf ) );
|
tr_strltime( buf, now - lastAnnounceTime, sizeof( buf ) );
|
||||||
if( lastAnnounceSucceeded )
|
if( lastAnnounceSucceeded )
|
||||||
|
|||||||
@@ -1821,7 +1821,7 @@ buildTrackerSummary( const char * key, const tr_tracker_stat * st, gboolean show
|
|||||||
|
|
||||||
if( !st->isBackup )
|
if( !st->isBackup )
|
||||||
{
|
{
|
||||||
if( st->hasAnnounced )
|
if( st->hasAnnounced && st->announceState != TR_TRACKER_INACTIVE )
|
||||||
{
|
{
|
||||||
g_string_append_c( gstr, '\n' );
|
g_string_append_c( gstr, '\n' );
|
||||||
tr_strltime_rounded( timebuf, now - st->lastAnnounceTime, sizeof( timebuf ) );
|
tr_strltime_rounded( timebuf, now - st->lastAnnounceTime, sizeof( timebuf ) );
|
||||||
@@ -1840,10 +1840,8 @@ buildTrackerSummary( const char * key, const tr_tracker_stat * st, gboolean show
|
|||||||
switch( st->announceState )
|
switch( st->announceState )
|
||||||
{
|
{
|
||||||
case TR_TRACKER_INACTIVE:
|
case TR_TRACKER_INACTIVE:
|
||||||
if( !st->hasAnnounced ) {
|
g_string_append_c( gstr, '\n' );
|
||||||
g_string_append_c( gstr, '\n' );
|
g_string_append( gstr, _( "No updates scheduled" ) );
|
||||||
g_string_append( gstr, _( "No updates scheduled" ) );
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case TR_TRACKER_WAITING:
|
case TR_TRACKER_WAITING:
|
||||||
tr_strltime_rounded( timebuf, st->nextAnnounceTime - now, sizeof( timebuf ) );
|
tr_strltime_rounded( timebuf, st->nextAnnounceTime - now, sizeof( timebuf ) );
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ TrackerDelegate :: getText( const TrackerInfo& inf ) const
|
|||||||
// announce & scrape info
|
// announce & scrape info
|
||||||
if( !inf.st.isBackup )
|
if( !inf.st.isBackup )
|
||||||
{
|
{
|
||||||
if( inf.st.hasAnnounced )
|
if( inf.st.hasAnnounced && inf.st.announceState != TR_TRACKER_INACTIVE )
|
||||||
{
|
{
|
||||||
const QString tstr( timeToStringRounded( now - inf.st.lastAnnounceTime ) );
|
const QString tstr( timeToStringRounded( now - inf.st.lastAnnounceTime ) );
|
||||||
str += "<br/>\n";
|
str += "<br/>\n";
|
||||||
@@ -184,10 +184,8 @@ TrackerDelegate :: getText( const TrackerInfo& inf ) const
|
|||||||
switch( inf.st.announceState )
|
switch( inf.st.announceState )
|
||||||
{
|
{
|
||||||
case TR_TRACKER_INACTIVE:
|
case TR_TRACKER_INACTIVE:
|
||||||
if( !inf.st.hasAnnounced ) {
|
str += "<br/>\n";
|
||||||
str += "<br/>\n";
|
str += tr( "No updates scheduled" );
|
||||||
str += tr( "No updates scheduled" );
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TR_TRACKER_WAITING: {
|
case TR_TRACKER_WAITING: {
|
||||||
|
|||||||
Reference in New Issue
Block a user