2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Set precision back to 1.
	* src/ConsoleStatCalc.cc (calculateStat)
pull/1/head
Tatsuhiro Tsujikawa 2007-11-22 11:33:20 +00:00
parent 7436490f75
commit b27c529549
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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