1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(trunk gtk) small renderer cleanup from the #3488 patch

This commit is contained in:
Charles Kerr 2010-08-06 15:17:27 +00:00
parent 1c0d149c12
commit 65d5ec0c63

View file

@ -170,7 +170,7 @@ getShortTransferString( const tr_torrent * tor,
tr_formatter_speed_KBps( upStr, uploadSpeed_KBps, sizeof( upStr ) );
if( haveDown && haveUp )
/* 1==down speed, 2==down arrow, 3==up speed, 4==down arrow */
/* 1==down arrow, 2==down speed, 3==up arrow, 4==down speed */
g_snprintf( buf, buflen, _( "%1$s %2$s, %3$s %4$s" ),
gtr_get_unicode_string( GTR_UNICODE_DOWN ), downStr,
gtr_get_unicode_string( GTR_UNICODE_UP ), upStr );
@ -182,7 +182,7 @@ getShortTransferString( const tr_torrent * tor,
/* bandwidth speed + unicode arrow */
g_snprintf( buf, buflen, _( "%1$s %2$s" ),
gtr_get_unicode_string( GTR_UNICODE_UP ), upStr );
else if( tr_torrentHasMetadata( tor ) )
else if( haveMeta )
/* the torrent isn't uploading or downloading */
g_strlcpy( buf, _( "Idle" ), buflen );
else