Changeset 12375


Ignore:
Timestamp:
Apr 20, 2011, 1:16:16 AM (11 years ago)
Author:
jordan
Message:

(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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r12358 r12375  
    14591459        || ( newActivePeerCount != oldActivePeerCount )
    14601460        || ( newTrackers != oldTrackers )
    1461         || gtr_compare_double( newUpSpeed, oldUpSpeed, 3 )
    1462         || gtr_compare_double( newDownSpeed, oldDownSpeed, 3 )
     1461        || gtr_compare_double( newUpSpeed, oldUpSpeed, 2 )
     1462        || gtr_compare_double( newDownSpeed, oldDownSpeed, 2 )
    14631463        || gtr_compare_double( newRecheckProgress, oldRecheckProgress, 2 ) )
    14641464    {
Note: See TracChangeset for help on using the changeset viewer.