1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(trunk gtk) make the GTK+ client's file list a little faster

This commit is contained in:
Charles Kerr 2010-02-11 14:45:03 +00:00
parent 13b03ba195
commit c51611f202

View file

@ -109,8 +109,9 @@ refreshFilesForeach( GtkTreeModel * model,
if( is_file )
{
tr_torrent * tor = data->tor;
const int enabled = tr_torrentGetFileDL( tor, index );
const int priority = tr_torrentGetFilePriority( tor, index );
const tr_info * inf = tr_torrentInfo( tor );
const int enabled = !inf->files[index].dnd;
const int priority = inf->files[index].priority;
const uint64_t have = data->refresh_file_stat[index].bytesCompleted;
const int prog = size ? (int)((100.0*have)/size) : 1;