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:
parent
9ee99dc2e7
commit
16b6ff2fd3
1 changed files with 4 additions and 4 deletions
|
@ -251,9 +251,9 @@ compareByRatio( GtkTreeModel * model,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
compareByActivity( GtkTreeModel * model,
|
compareByActivity( GtkTreeModel * model,
|
||||||
GtkTreeIter * a,
|
GtkTreeIter * a,
|
||||||
GtkTreeIter * b,
|
GtkTreeIter * b,
|
||||||
gpointer user_data UNUSED )
|
gpointer user_data UNUSED )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -270,7 +270,7 @@ compareByActivity( GtkTreeModel * model,
|
||||||
MC_TORRENT_RAW, &tb,
|
MC_TORRENT_RAW, &tb,
|
||||||
-1 );
|
-1 );
|
||||||
|
|
||||||
if(( i = compareDouble( sa->percentDone, sb->percentDone )))
|
if(( i = compareDouble( aUp+aDown, bUp+bDown )))
|
||||||
return i;
|
return i;
|
||||||
|
|
||||||
sa = tr_torrentStatCached( ta );
|
sa = tr_torrentStatCached( ta );
|
||||||
|
|
Loading…
Add table
Reference in a new issue