Browse Source

- Fixed session ratio value: was either 10. or 1. (closes #133026)

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
55834ba5db
  1. 2
      TODO
  2. 2
      src/GUI.cpp

2
TODO

@ -49,6 +49,7 @@ @@ -49,6 +49,7 @@
- make use of finishedChecking alert if hydri applies my patch for this
- Clean up delayed progress column sorting code
- Clean up pause after checking code
- Check incremental download (looks broken)
- Wait for some bug fixes in libtorrent :
- upload/download limit per torrent (Ticket #83)
@ -75,5 +76,6 @@ beta4->beta5 changelog: @@ -75,5 +76,6 @@ beta4->beta5 changelog:
- BUGFIX: Finished torrents were still displayed as checking when paused by libtorrent on full disk (hit an assert)
- BUGFIX: Fixed the way icons are installed to avoid problems on some systems
- BUGFIX: Fixed qBittorrent version in .desktop file
- BUGFIX: Fixed session ratio value (was either 10. or 1.)
- I18N: Updated Italian, Polish, Portuguese, Brazilian translations
- COSMETIC: Changed the way progress bars are rendered

2
src/GUI.cpp

@ -1670,7 +1670,7 @@ void GUI::checkConnectionStatus(){ @@ -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…
Cancel
Save