mirror of https://github.com/aria2/aria2
2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Set precision back to 1. * src/ConsoleStatCalc.cc (calculateStat)pull/1/head
parent
7436490f75
commit
b27c529549
|
@ -1,3 +1,8 @@
|
|||
2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Set precision back to 1.
|
||||
* src/ConsoleStatCalc.cc (calculateStat)
|
||||
|
||||
2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Replaced strtol with Util::parseInt
|
||||
|
|
|
@ -71,7 +71,8 @@ ConsoleStatCalc::calculateStat(const RequestGroupManHandle& requestGroupMan,
|
|||
if(firstRequestGroup->downloadFinished() &&
|
||||
!BtContextHandle(firstRequestGroup->getDownloadContext()).isNull()) {
|
||||
cout << "SEEDING" << "(" << "ratio:"
|
||||
<< fixed << setprecision(2) << stat.getAllTimeUploadLength()*1.0/firstRequestGroup->getCompletedLength()
|
||||
<< fixed << setprecision(1)
|
||||
<< ((stat.getAllTimeUploadLength()*10)/firstRequestGroup->getCompletedLength())/10.0
|
||||
<< ")";
|
||||
} else
|
||||
#endif // ENABLE_BITTORRENT
|
||||
|
|
Loading…
Reference in New Issue