(trunk gtk) very minor tweak in deciding which rows to update in the torrent model.

Since we only display speed to two decimal places, we don't need to compare previous and current torrent speed with more precision than that.
This commit is contained in:
Jordan Lee 2011-04-20 01:16:16 +00:00
parent de8944278d
commit 6326003e73
1 changed files with 2 additions and 2 deletions

View File

@ -1458,8 +1458,8 @@ update_foreach( GtkTreeModel * model, GtkTreeIter * iter )
|| ( newError != oldError )
|| ( newActivePeerCount != oldActivePeerCount )
|| ( newTrackers != oldTrackers )
|| gtr_compare_double( newUpSpeed, oldUpSpeed, 3 )
|| gtr_compare_double( newDownSpeed, oldDownSpeed, 3 )
|| gtr_compare_double( newUpSpeed, oldUpSpeed, 2 )
|| gtr_compare_double( newDownSpeed, oldDownSpeed, 2 )
|| gtr_compare_double( newRecheckProgress, oldRecheckProgress, 2 ) )
{
gtk_list_store_set( GTK_LIST_STORE( model ), iter,