- BUGFIX: Fixed an arithmetic exception that could happen in ETA calculation

This commit is contained in:
Christophe Dumez 2006-10-03 00:28:41 +00:00
parent dd65bb7292
commit 55fd750bfd
3 changed files with 3 additions and 2 deletions

View file

@ -25,6 +25,7 @@
- BUGFIX: Remove torrent file from scanned directory if it is already in download list - BUGFIX: Remove torrent file from scanned directory if it is already in download list
- BUGFIX: Fixed possible segfault on loading due to columns size loading - BUGFIX: Fixed possible segfault on loading due to columns size loading
- BUGFIX: Fixed problems that could happen with delete selection action - BUGFIX: Fixed problems that could happen with delete selection action
- BUGFIX: Fixed an arithmetic exception that could happen in ETA calculation
- COSMETIC: Now displaying the number of downloads in tab title - COSMETIC: Now displaying the number of downloads in tab title
- COSMETIC: Redesigned download from url dialog - COSMETIC: Redesigned download from url dialog
- COSMETIC: Added a message to warn user that we started download from an url - COSMETIC: Added a message to warn user that we started download from an url

View file

@ -492,7 +492,7 @@ void GUI::updateDlList(){
if(torrentStatus.download_payload_rate > 0){ if(torrentStatus.download_payload_rate > 0){
// Display "Downloading" status when connecting if download speed > 0 // Display "Downloading" status when connecting if download speed > 0
DLListModel->setData(DLListModel->index(row, STATUS), QVariant(tr("Downloading..."))); DLListModel->setData(DLListModel->index(row, STATUS), QVariant(tr("Downloading...")));
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)(((qlonglong)ti.total_size()-(qlonglong)torrentStatus.total_done)/(qlonglong)torrentStatus.download_payload_rate))); DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)((ti.total_size()-torrentStatus.total_done)/(double)torrentStatus.download_payload_rate)));
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/downloading.png")), Qt::DecorationRole); DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/downloading.png")), Qt::DecorationRole);
setRowColor(row, "green"); setRowColor(row, "green");
}else{ }else{

View file

@ -23,7 +23,7 @@
#define ABOUT_H #define ABOUT_H
#include "ui_about.h" #include "ui_about.h"
#define VERSION "v0.7.0rc3" #define VERSION "v0.7.0rc4"
class about : public QDialog, private Ui::AboutDlg{ class about : public QDialog, private Ui::AboutDlg{
Q_OBJECT Q_OBJECT