mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(gtk) show "remaining time unknown" instead of "data not fully available"
This commit is contained in:
parent
81d4e5887d
commit
e22eb7c68b
2 changed files with 4 additions and 8 deletions
|
@ -83,10 +83,8 @@ getProgressString( const tr_info * info, const tr_stat * torStat )
|
||||||
const int eta = torStat->eta;
|
const int eta = torStat->eta;
|
||||||
GString * gstr = g_string_new( str );
|
GString * gstr = g_string_new( str );
|
||||||
g_string_append( gstr, " - " );
|
g_string_append( gstr, " - " );
|
||||||
if( eta == TR_ETA_NOT_AVAIL )
|
if( eta < 0 )
|
||||||
g_string_append( gstr, _( "Data not fully available" ) );
|
g_string_append( gstr, _( "Remaining time unknown" ) );
|
||||||
else if( eta == TR_ETA_UNKNOWN )
|
|
||||||
g_string_append( gstr, _( "Stalled" ) );
|
|
||||||
else {
|
else {
|
||||||
char timestr[128];
|
char timestr[128];
|
||||||
tr_strltime( timestr, eta, sizeof( timestr ) );
|
tr_strltime( timestr, eta, sizeof( timestr ) );
|
||||||
|
|
|
@ -250,10 +250,8 @@ tr_torrent_status_str ( TrTorrent * gtor )
|
||||||
|
|
||||||
case TR_STATUS_DOWNLOAD:
|
case TR_STATUS_DOWNLOAD:
|
||||||
|
|
||||||
if( eta == TR_ETA_NOT_AVAIL )
|
if( eta < 0 )
|
||||||
top = g_strdup_printf( _("Data not fully available (%.1f%%)" ), prog );
|
top = g_strdup_printf( _("Remaining time unknown (%.1f%%)" ), prog );
|
||||||
else if( eta == TR_ETA_UNKNOWN )
|
|
||||||
top = g_strdup_printf( _( "Stalled (%.1f%%)" ), prog );
|
|
||||||
else {
|
else {
|
||||||
char timestr[128];
|
char timestr[128];
|
||||||
tr_strltime( timestr, eta, sizeof( timestr ) );
|
tr_strltime( timestr, eta, sizeof( timestr ) );
|
||||||
|
|
Loading…
Reference in a new issue