1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 14:13:23 +00:00

(trunk gtk) another improvement on the changes made for #2292, this time correcting a small bug in sort-by-activity

This commit is contained in:
Charles Kerr 2009-08-13 03:52:21 +00:00
parent 9ee99dc2e7
commit 16b6ff2fd3

View file

@ -251,9 +251,9 @@ compareByRatio( GtkTreeModel * model,
}
static int
compareByActivity( GtkTreeModel * model,
GtkTreeIter * a,
GtkTreeIter * b,
compareByActivity( GtkTreeModel * model,
GtkTreeIter * a,
GtkTreeIter * b,
gpointer user_data UNUSED )
{
int i;
@ -270,7 +270,7 @@ compareByActivity( GtkTreeModel * model,
MC_TORRENT_RAW, &tb,
-1 );
if(( i = compareDouble( sa->percentDone, sb->percentDone )))
if(( i = compareDouble( aUp+aDown, bUp+bDown )))
return i;
sa = tr_torrentStatCached( ta );