2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
	space in console readout. Also they are now shown in MiB/s if
	speed > 1024KiB/s.
	* src/ConsoleStatCalc.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-05-19 12:08:13 +00:00
parent 579457eae0
commit a839b42747
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
space in console readout. Also they are now shown in MiB/s if
speed > 1024KiB/s.
* src/ConsoleStatCalc.cc
2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added SEED to console output, which represents the number of

View File

@ -127,12 +127,12 @@ static void printProgress
if(!rg->downloadFinished()) {
o << " "
<< "SPD:"
<< std::fixed << std::setprecision(2) << stat.getDownloadSpeed()/1024.0 << "KiB/s";
<< Util::abbrevSize(stat.getDownloadSpeed()) << "Bs";
}
if(stat.getSessionUploadLength() > 0) {
o << " "
<< "UP:"
<< std::fixed << std::setprecision(2) << stat.getUploadSpeed()/1024.0 << "KiB/s"
<< Util::abbrevSize(stat.getUploadSpeed()) << "Bs"
<< "(" << Util::abbrevSize(stat.getAllTimeUploadLength()) << "B)";
}
if(eta > 0) {
@ -235,7 +235,7 @@ ConsoleStatCalc::calculateStat(const DownloadEngine* e)
TransferStat stat = e->_requestGroupMan->calculateStat();
o << " "
<< "[TOTAL SPD:"
<< std::fixed << std::setprecision(2) << stat.getDownloadSpeed()/1024.0 << "KiB/s" << "]";
<< Util::abbrevSize(stat.getDownloadSpeed()) << "Bs" << "]";
}
{