(gtk) show "remaining time unknown" instead of "data not fully available"
This commit is contained in:
parent
81d4e5887d
commit
e22eb7c68b
|
@ -83,10 +83,8 @@ getProgressString( const tr_info * info, const tr_stat * torStat )
|
|||
const int eta = torStat->eta;
|
||||
GString * gstr = g_string_new( str );
|
||||
g_string_append( gstr, " - " );
|
||||
if( eta == TR_ETA_NOT_AVAIL )
|
||||
g_string_append( gstr, _( "Data not fully available" ) );
|
||||
else if( eta == TR_ETA_UNKNOWN )
|
||||
g_string_append( gstr, _( "Stalled" ) );
|
||||
if( eta < 0 )
|
||||
g_string_append( gstr, _( "Remaining time unknown" ) );
|
||||
else {
|
||||
char timestr[128];
|
||||
tr_strltime( timestr, eta, sizeof( timestr ) );
|
||||
|
|
|
@ -250,10 +250,8 @@ tr_torrent_status_str ( TrTorrent * gtor )
|
|||
|
||||
case TR_STATUS_DOWNLOAD:
|
||||
|
||||
if( eta == TR_ETA_NOT_AVAIL )
|
||||
top = g_strdup_printf( _("Data not fully available (%.1f%%)" ), prog );
|
||||
else if( eta == TR_ETA_UNKNOWN )
|
||||
top = g_strdup_printf( _( "Stalled (%.1f%%)" ), prog );
|
||||
if( eta < 0 )
|
||||
top = g_strdup_printf( _("Remaining time unknown (%.1f%%)" ), prog );
|
||||
else {
|
||||
char timestr[128];
|
||||
tr_strltime( timestr, eta, sizeof( timestr ) );
|
||||
|
|
Loading…
Reference in New Issue