mirror of https://github.com/aria2/aria2
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.ccpull/1/head
parent
579457eae0
commit
a839b42747
|
@ -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>
|
2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Added SEED to console output, which represents the number of
|
Added SEED to console output, which represents the number of
|
||||||
|
|
|
@ -127,12 +127,12 @@ static void printProgress
|
||||||
if(!rg->downloadFinished()) {
|
if(!rg->downloadFinished()) {
|
||||||
o << " "
|
o << " "
|
||||||
<< "SPD:"
|
<< "SPD:"
|
||||||
<< std::fixed << std::setprecision(2) << stat.getDownloadSpeed()/1024.0 << "KiB/s";
|
<< Util::abbrevSize(stat.getDownloadSpeed()) << "Bs";
|
||||||
}
|
}
|
||||||
if(stat.getSessionUploadLength() > 0) {
|
if(stat.getSessionUploadLength() > 0) {
|
||||||
o << " "
|
o << " "
|
||||||
<< "UP:"
|
<< "UP:"
|
||||||
<< std::fixed << std::setprecision(2) << stat.getUploadSpeed()/1024.0 << "KiB/s"
|
<< Util::abbrevSize(stat.getUploadSpeed()) << "Bs"
|
||||||
<< "(" << Util::abbrevSize(stat.getAllTimeUploadLength()) << "B)";
|
<< "(" << Util::abbrevSize(stat.getAllTimeUploadLength()) << "B)";
|
||||||
}
|
}
|
||||||
if(eta > 0) {
|
if(eta > 0) {
|
||||||
|
@ -235,7 +235,7 @@ ConsoleStatCalc::calculateStat(const DownloadEngine* e)
|
||||||
TransferStat stat = e->_requestGroupMan->calculateStat();
|
TransferStat stat = e->_requestGroupMan->calculateStat();
|
||||||
o << " "
|
o << " "
|
||||||
<< "[TOTAL SPD:"
|
<< "[TOTAL SPD:"
|
||||||
<< std::fixed << std::setprecision(2) << stat.getDownloadSpeed()/1024.0 << "KiB/s" << "]";
|
<< Util::abbrevSize(stat.getDownloadSpeed()) << "Bs" << "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue