/* */ #include "ConsoleDownloadEngine.h" #include "Util.h" ConsoleDownloadEngine::ConsoleDownloadEngine() {} ConsoleDownloadEngine::~ConsoleDownloadEngine() {} void ConsoleDownloadEngine::sendStatistics(long long int currentSize, long long int totalSize) { cout << "\r "; cout << "\rProgress " << Util::llitos(currentSize, true) << " Bytes/" << Util::llitos(totalSize, true) << " Bytes " << (totalSize == 0 ? 0 : (currentSize*100)/totalSize) << "% " << speed/1000.0 << "KB/s " << "(" << commands.size() << " connections)" << flush; }