mirror of
https://github.com/aria2/aria2.git
synced 2025-01-24 02:31:29 +00:00
Show download rate in fixed notation
This commit is contained in:
parent
649830316e
commit
1b35f2f8c8
@ -35,6 +35,7 @@
|
|||||||
#include "ConsoleDownloadEngine.h"
|
#include "ConsoleDownloadEngine.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <iomanip>
|
||||||
|
|
||||||
volatile sig_atomic_t haltRequested = 0;
|
volatile sig_atomic_t haltRequested = 0;
|
||||||
|
|
||||||
@ -79,7 +80,7 @@ void ConsoleDownloadEngine::sendStatistics(long long int currentSize, long long
|
|||||||
}
|
}
|
||||||
cout << "]";
|
cout << "]";
|
||||||
}
|
}
|
||||||
cout << "[" << speed/1024.0 << "KB/s" << "]";
|
cout << "[" << fixed << setprecision(2) << speed/1024.0 << "KB/s" << "]";
|
||||||
|
|
||||||
{
|
{
|
||||||
FileAllocationEntryHandle entry = _fileAllocationMan->getCurrentFileAllocationEntry();
|
FileAllocationEntryHandle entry = _fileAllocationMan->getCurrentFileAllocationEntry();
|
||||||
|
Loading…
Reference in New Issue
Block a user