mirror of https://github.com/aria2/aria2
2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that --summary-interval=0 doesn't work. The summary is printed repeatedly. * src/ConsoleStatCalc.ccpull/1/head
parent
5d72f3954b
commit
3b06e49b48
|
@ -1,3 +1,9 @@
|
||||||
|
2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed the bug that --summary-interval=0 doesn't work. The summary
|
||||||
|
is printed repeatedly.
|
||||||
|
* src/ConsoleStatCalc.cc
|
||||||
|
|
||||||
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
* Release 1.1.0
|
* Release 1.1.0
|
||||||
|
|
|
@ -184,7 +184,8 @@ ConsoleStatCalc::calculateStat(const RequestGroupManHandle& requestGroupMan,
|
||||||
}
|
}
|
||||||
std::ostringstream o;
|
std::ostringstream o;
|
||||||
if(requestGroupMan->countRequestGroup() > 0) {
|
if(requestGroupMan->countRequestGroup() > 0) {
|
||||||
if(_lastSummaryNotified.elapsed(_summaryInterval)) {
|
if((_summaryInterval > 0) &&
|
||||||
|
_lastSummaryNotified.elapsed(_summaryInterval)) {
|
||||||
_lastSummaryNotified.reset();
|
_lastSummaryNotified.reset();
|
||||||
printProgressSummary(requestGroupMan->getRequestGroups(), cols);
|
printProgressSummary(requestGroupMan->getRequestGroups(), cols);
|
||||||
std::cout << "\n";
|
std::cout << "\n";
|
||||||
|
|
Loading…
Reference in New Issue