mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
- Fixed session ratio value: was either 10. or 1. (closes #133026)
This commit is contained in:
parent
417d8a777b
commit
55834ba5db
2 changed files with 3 additions and 1 deletions
|
@ -1670,7 +1670,7 @@ void GUI::checkConnectionStatus(){
|
|||
else
|
||||
ratio = 10.;
|
||||
}else{
|
||||
float ratio = (float)sessionStatus.total_payload_upload / (float)sessionStatus.total_payload_download;
|
||||
ratio = (double)sessionStatus.total_payload_upload / (double)sessionStatus.total_payload_download;
|
||||
if(ratio > 10.)
|
||||
ratio = 10.;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue