Opened 9 years ago
Last modified 9 years ago
#4796 new Bug
Setting seedRatioLimit to 3.6 sets it to 3.5999
Reported by: | fagga | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | None Set |
Component: | Daemon | Version: | 2.50 |
Severity: | Minor | Keywords: | |
Cc: |
Description
I'm using transmission-remote-cli.py, which uses the RPC interface. transmission-remote doesn't seem to have this problem, but '3.5999' is in the unaltered JSON response from the server.
Some floats work as expected, others have this weird rounding.
This happens both for global and individual torrents' seed limits.
Change History (3)
comment:1 Changed 9 years ago by jordan
comment:2 Changed 9 years ago by fagga
Maybe because -remote does some rounding, maybe something like "%.2f"?
From what I can tell, this is the only explanation, but I don't see the whole picture. I tried to look at the -remote code, but couldn't find the relevant bits. (Plus, I don't know anything about C, so it probably wouldn't have helped anyway.)
comment:3 Changed 9 years ago by fagga
Ah, I found it. transmission-remote does indeed use "%.2f", and using this in -remote-cli does solve (or rather conceal) the issue.
Hm, any idea why it works in -remote but not in -remote-cli?