mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
- Fixed session ratio value: was either 10. or 1. (closes #133026)
This commit is contained in:
@@ -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.;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user