jesec / flood

A modern web UI for various torrent clients with a Node.js backend and React frontend.
https://flood.js.org
GNU General Public License v3.0
2.24k stars 135 forks source link

changed transmission ratio calculation to total size instead of downloaded size #791

Closed RA341 closed 3 months ago

RA341 commented 3 months ago

Transmission ratio calculation was based on torrent.uploadedEver/torrent.downloadedEver, which caused some torrents not initiated in flood to have a ratio of -1.

Description

The calculation is now based on torrent.uploadedEver / torrent.totalSize

Related Issue

720

Screenshots

Before change:

Note the ratio is -1

image

After change

Note the ratio is now correctly displayed: 0.01

image