mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Fix bug that progress summary is not shown timely
This commit is contained in:
parent
f57947d236
commit
85faafcaf2
@ -320,7 +320,7 @@ ConsoleStatCalc::calculateStat(const DownloadEngine* e)
|
|||||||
if(e->getRequestGroupMan()->countRequestGroup() > 0) {
|
if(e->getRequestGroupMan()->countRequestGroup() > 0) {
|
||||||
if((summaryInterval_ > 0_s) &&
|
if((summaryInterval_ > 0_s) &&
|
||||||
lastSummaryNotified_.difference(global::wallclock())+
|
lastSummaryNotified_.difference(global::wallclock())+
|
||||||
A2_DELTA_MILLIS >= summaryInterval_*1000) {
|
A2_DELTA_MILLIS >= summaryInterval_) {
|
||||||
lastSummaryNotified_ = global::wallclock();
|
lastSummaryNotified_ = global::wallclock();
|
||||||
printProgressSummary(e->getRequestGroupMan()->getRequestGroups(), cols, e,
|
printProgressSummary(e->getRequestGroupMan()->getRequestGroups(), cols, e,
|
||||||
sizeFormatter);
|
sizeFormatter);
|
||||||
|
Loading…
Reference in New Issue
Block a user