mirror of
https://github.com/aria2/aria2.git
synced 2026-04-11 23:39:05 +00:00
Reset stream format state
This commit is contained in:
@@ -115,8 +115,11 @@ void printProgress
|
||||
rg->downloadFinished()) {
|
||||
o << "SEEDING" << "(" << "ratio:";
|
||||
if(rg->getCompletedLength() > 0) {
|
||||
std::streamsize oldprec = o.precision();
|
||||
o << std::fixed << std::setprecision(1)
|
||||
<< ((stat.allTimeUploadLength*10)/rg->getCompletedLength())/10.0;
|
||||
<< ((stat.allTimeUploadLength*10)/rg->getCompletedLength())/10.0
|
||||
<< std::setprecision(oldprec)
|
||||
<< std::resetiosflags(std::ios::fixed);
|
||||
} else {
|
||||
o << "--";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user