瀏覽代碼

Fix bug that progress summary is not shown timely

Tatsuhiro Tsujikawa 10 年之前
父節點
當前提交
85faafcaf2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ConsoleStatCalc.cc

+ 1 - 1
src/ConsoleStatCalc.cc

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