Merge pull request #599 from nielsenj/patch-2

Fixed setting ratio in Transmission
This commit is contained in:
echel0n 2014-06-19 09:42:54 -07:00
commit cfc56a569d
1 changed files with 2 additions and 2 deletions

View File

@ -88,10 +88,10 @@ class TransmissionAPI(GenericClient):
mode = 0
if ratio:
if float(ratio) == 0:
if float(ratio) == -1:
ratio = 0
mode = 2
elif float(ratio) > 0:
elif float(ratio) >= 0:
ratio = float(ratio)
mode = 1 # Stop seeding at seedRatioLimit