From 55834ba5db16c71950c71cfd3983bbcaf1eb2b0c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 16 Aug 2007 23:46:45 +0000 Subject: [PATCH] - Fixed session ratio value: was either 10. or 1. (closes #133026) --- TODO | 2 ++ src/GUI.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index eb9463688..1635e448f 100644 --- a/TODO +++ b/TODO @@ -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: - 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 diff --git a/src/GUI.cpp b/src/GUI.cpp index 067068388..cfc4075f5 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -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.; }