1
0
mirror of https://github.com/asamy/ctorrent synced 2025-10-05 15:42:48 +02:00
This commit is contained in:
A. Samy
2015-11-28 18:53:09 +00:00
parent 057743b6ce
commit dc281f467e
2 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
# CTorrent
CTorrent is a torrent client written in C++11 with some help from Boost.
![img](https://i.imgur.com/WcjjLG5.png)
## Requirements

View File

@@ -25,6 +25,7 @@
#include <thread>
#include <functional>
#include <chrono>
#include <iostream>
#include <boost/program_options.hpp>
@@ -223,17 +224,13 @@ int main(int argc, char *argv[])
}
if (!nodownload && started > 0) {
int last = 0;
while (completed != total - errors) {
if (errors == total)
break;
Connection::poll();
print_all_stats(torrents, total);
if (last == completed)
continue;
last = completed;
std::this_thread::sleep_for(std::chrono::milliseconds(5));
}
}
@@ -241,6 +238,7 @@ int main(int argc, char *argv[])
while (eseed != total) {
Connection::poll();
print_all_stats(torrents, total);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}