Skip to content

Commit

Permalink
Show download rate in fixed notation
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Jun 10, 2007
1 parent 6498303 commit 1b35f2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ConsoleDownloadEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "ConsoleDownloadEngine.h"
#include "Util.h"
#include <signal.h>
#include <iomanip>

volatile sig_atomic_t haltRequested = 0;

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1b35f2f

Please sign in to comment.