jlouis / etorrent

Erlang Bittorrent Client
BSD 2-Clause "Simplified" License
294 stars 50 forks source link

Correctly remove sparkline rate when torrent finishes #26

Closed jlouis closed 14 years ago

jlouis commented 14 years ago

I thought I got this done, but it seems I did not, unfortunately. When we go from a leecher to a seeder mode, the old rate sparkline entries should be invalidated so we begin freshly again. We are now reporting leeching values in the seeding values, and this is wrong.

jlouis commented 14 years ago

The question of fixing this is really more a question of what data flows in what tables when a torrent finishes. We should check that the tables will get updated in the right way and this will explain where to put in the reset of the spark-line. I tried to fix this, but apparently, I have fixed it in an incorrect way :/