Change calculation of Ratio

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
buggsy2
Posts: 7
Joined: Tue Jan 13, 2009 2:54 pm

Change calculation of Ratio

Post by buggsy2 »

1.42 on an NSLU2 Unslung.

Ratio is calculated as Uploaded/Downloaded. Seems easy enough. The problem is when adding to transmission an already-downloaded torrent (from, say, another client or another computer). Then T says Downloaded is zero and reports Inf in the Ratio. More importantly to me, the various scripts written to stop seeding when a maximum ratio is reached all check Ratio and don't handle correctly the above case....assuming "correctly" has the meaning below.

I'd like to see Ratio calculated as Uploaded/Have. Have always should be >= Downloaded. The Ratio will then be a real number even for torrents started as 100% Done and seeding.

Meanwhile I'll post another script which recalculates Ratio=Uploaded/Have (scaled properly for K, M, G).
Post Reply