(gtk) #1015: only count selected files in the progress bar

This commit is contained in:
Charles Kerr 2008-06-11 13:41:56 +00:00
parent 44a675ab0f
commit 51aa583d60
1 changed files with 1 additions and 3 deletions

View File

@ -453,9 +453,7 @@ torrent_cell_renderer_render( GtkCellRenderer * cell,
my_cell.height = p->bar_height;
if( 1 )
{
const double havePercent = ( torStat->haveValid + torStat->haveUnchecked )
/ (double)info->totalSize;
g_object_set( p->progress_renderer, "value", (int)(havePercent*100.0),
g_object_set( p->progress_renderer, "value", (int)(torStat->percentDone*100.0),
"text", "",
NULL );
gtk_cell_renderer_render( p->progress_renderer,