mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
- Added some asserts to check for overflows
- Removed a useless functions (was used for debug) - Fixed 2 warnings in createTorrent.ui - Improved CXX_FLAGS in src.pro
This commit is contained in:
parent
06cb5ff4c6
commit
057029787a
3
TODO
3
TODO
@ -45,10 +45,9 @@
|
|||||||
- update sorting when a new torrent is added?
|
- update sorting when a new torrent is added?
|
||||||
- Keep documention up to date
|
- Keep documention up to date
|
||||||
- Windows port (Chris - Peerkoel)
|
- Windows port (Chris - Peerkoel)
|
||||||
- write a patch for file_priority(int index);
|
- write a patch for file_priority(int index), actual_size();
|
||||||
- valgrind --tool=memcheck --leak-check=full src/qbittorrent (Looks ok)
|
- valgrind --tool=memcheck --leak-check=full src/qbittorrent (Looks ok)
|
||||||
* beta 6
|
* beta 6
|
||||||
- Use gprof to check if we can optimize some stuff (compile with -pg)
|
|
||||||
- Translations update (IN PROGRESS)
|
- Translations update (IN PROGRESS)
|
||||||
- Wait for some bug fixes in libtorrent :
|
- Wait for some bug fixes in libtorrent :
|
||||||
- Number of seeds non null for finished torrent (Ticket #122)
|
- Number of seeds non null for finished torrent (Ticket #122)
|
||||||
|
@ -555,15 +555,6 @@ void bittorrent::setMaxConnections(int maxConnec) {
|
|||||||
s->set_max_connections(maxConnec);
|
s->set_max_connections(maxConnec);
|
||||||
}
|
}
|
||||||
|
|
||||||
// For debug only
|
|
||||||
void bittorrent::printPausedTorrents() {
|
|
||||||
QString hash;
|
|
||||||
qDebug("Paused Torrents:");
|
|
||||||
foreach(hash, pausedTorrents) {
|
|
||||||
qDebug("%s ", hash.toUtf8().data());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return DHT state
|
// Return DHT state
|
||||||
bool bittorrent::isDHTEnabled() const{
|
bool bittorrent::isDHTEnabled() const{
|
||||||
return DHTEnabled;
|
return DHTEnabled;
|
||||||
@ -696,7 +687,9 @@ float bittorrent::getRealRatio(QString hash) const{
|
|||||||
size_type upload = downUpInfo.second;
|
size_type upload = downUpInfo.second;
|
||||||
QTorrentHandle h = getTorrentHandle(hash);
|
QTorrentHandle h = getTorrentHandle(hash);
|
||||||
download += h.total_payload_download();
|
download += h.total_payload_download();
|
||||||
|
Q_ASSERT(download >= 0);
|
||||||
upload += h.total_payload_upload();
|
upload += h.total_payload_upload();
|
||||||
|
Q_ASSERT(upload >= 0);
|
||||||
if(download == 0){
|
if(download == 0){
|
||||||
if(upload == 0)
|
if(upload == 0)
|
||||||
return 1.;
|
return 1.;
|
||||||
|
@ -82,7 +82,6 @@ class bittorrent : public QObject{
|
|||||||
session* getSession() const;
|
session* getSession() const;
|
||||||
QList<QPair<QString, QString> > getTrackersErrors(QString hash) const;
|
QList<QPair<QString, QString> > getTrackersErrors(QString hash) const;
|
||||||
bool receivedPausedAlert(QString hash) const;
|
bool receivedPausedAlert(QString hash) const;
|
||||||
void printPausedTorrents();
|
|
||||||
QStringList getFinishedTorrents() const;
|
QStringList getFinishedTorrents() const;
|
||||||
QStringList getUnfinishedTorrents() const;
|
QStringList getUnfinishedTorrents() const;
|
||||||
bool isFinished(QString hash) const;
|
bool isFinished(QString hash) const;
|
||||||
|
@ -489,7 +489,7 @@
|
|||||||
<string>Private (won't be distributed on trackerless network / DHT if enabled)</string>
|
<string>Private (won't be distributed on trackerless network / DHT if enabled)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="layoutWidget" >
|
<widget class="QWidget" name="layoutWidget2" >
|
||||||
<property name="geometry" >
|
<property name="geometry" >
|
||||||
<rect>
|
<rect>
|
||||||
<x>9</x>
|
<x>9</x>
|
||||||
@ -543,7 +543,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="layoutWidget" >
|
<widget class="QWidget" name="layoutWidget3" >
|
||||||
<property name="geometry" >
|
<property name="geometry" >
|
||||||
<rect>
|
<rect>
|
||||||
<x>9</x>
|
<x>9</x>
|
||||||
|
@ -19,18 +19,17 @@ DEFINES += VERSION_BUGFIX=0
|
|||||||
contains(DEBUG_MODE, 1){
|
contains(DEBUG_MODE, 1){
|
||||||
CONFIG += debug
|
CONFIG += debug
|
||||||
CONFIG -= release
|
CONFIG -= release
|
||||||
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O1
|
|
||||||
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O1
|
|
||||||
message(Debug build!)
|
message(Debug build!)
|
||||||
}
|
}
|
||||||
contains(DEBUG_MODE, 0){
|
contains(DEBUG_MODE, 0){
|
||||||
CONFIG -= debug
|
CONFIG -= debug
|
||||||
CONFIG += release
|
CONFIG += release
|
||||||
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O2
|
|
||||||
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O2
|
|
||||||
message(Release build!)
|
message(Release build!)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O2
|
||||||
|
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O1
|
||||||
|
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG += libtorrent libccext2 libccgnu2
|
PKGCONFIG += libtorrent libccext2 libccgnu2
|
||||||
QT += network xml
|
QT += network xml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user