ソースを参照

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((summaryInterval_ > 0_s) &&
        lastSummaryNotified_.difference(global::wallclock())+
-       A2_DELTA_MILLIS >= summaryInterval_*1000) {
+       A2_DELTA_MILLIS >= summaryInterval_) {
       lastSummaryNotified_ = global::wallclock();
       printProgressSummary(e->getRequestGroupMan()->getRequestGroups(), cols, e,
                            sizeFormatter);