mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(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:
parent
de8944278d
commit
6326003e73
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue