diff --git a/src/ConsoleDownloadEngine.cc b/src/ConsoleDownloadEngine.cc index 0596acf9..a4f7aff5 100644 --- a/src/ConsoleDownloadEngine.cc +++ b/src/ConsoleDownloadEngine.cc @@ -35,6 +35,7 @@ #include "ConsoleDownloadEngine.h" #include "Util.h" #include +#include volatile sig_atomic_t haltRequested = 0; @@ -79,7 +80,7 @@ void ConsoleDownloadEngine::sendStatistics(long long int currentSize, long long } cout << "]"; } - cout << "[" << speed/1024.0 << "KB/s" << "]"; + cout << "[" << fixed << setprecision(2) << speed/1024.0 << "KB/s" << "]"; { FileAllocationEntryHandle entry = _fileAllocationMan->getCurrentFileAllocationEntry();