mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(gtk) plug a minor leak in the Statistics dialog.
This commit is contained in:
@@ -58,7 +58,9 @@ updateStats( gpointer gdata )
|
||||
setLabel( ui->one_down_lb, tr_strlsize( buf, one.downloadedBytes, sizeof(buf) ) );
|
||||
setLabel( ui->one_time_lb, tr_strltime( buf, one.secondsActive, sizeof(buf) ) );
|
||||
setLabelFromRatio( ui->one_ratio_lb, one.ratio );
|
||||
setLabel( ui->all_sessions_lb, g_strdup_printf( _("Started %d times"), (int)all.sessionCount ) );
|
||||
|
||||
g_snprintf( buf, sizeof( buf ), _( "Started %d times" ), (int)all.sessionCount );
|
||||
setLabel( ui->all_sessions_lb, buf );
|
||||
setLabel( ui->all_up_lb, tr_strlsize( buf, all.uploadedBytes, sizeof(buf) ) );
|
||||
setLabel( ui->all_down_lb, tr_strlsize( buf, all.downloadedBytes, sizeof(buf) ) );
|
||||
setLabel( ui->all_time_lb, tr_strltime( buf, all.secondsActive, sizeof(buf) ) );
|
||||
|
||||
Reference in New Issue
Block a user