|
@@ -242,7 +242,7 @@ ConsoleStatCalc::ConsoleStatCalc(time_t summaryInterval, bool humanReadable):
|
|
void
|
|
void
|
|
ConsoleStatCalc::calculateStat(const DownloadEngine* e)
|
|
ConsoleStatCalc::calculateStat(const DownloadEngine* e)
|
|
{
|
|
{
|
|
- if(cp_.differenceInMillis(global::wallclock) < 900) {
|
|
|
|
|
|
+ if(cp_.differenceInMillis(global::wallclock)+A2_DELTA_MILLIS < 1000) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
cp_ = global::wallclock;
|
|
cp_ = global::wallclock;
|
|
@@ -271,7 +271,8 @@ ConsoleStatCalc::calculateStat(const DownloadEngine* e)
|
|
std::ostringstream o;
|
|
std::ostringstream o;
|
|
if(e->getRequestGroupMan()->countRequestGroup() > 0) {
|
|
if(e->getRequestGroupMan()->countRequestGroup() > 0) {
|
|
if((summaryInterval_ > 0) &&
|
|
if((summaryInterval_ > 0) &&
|
|
- lastSummaryNotified_.difference(global::wallclock) >= summaryInterval_) {
|
|
|
|
|
|
+ lastSummaryNotified_.differenceInMillis(global::wallclock)+
|
|
|
|
+ A2_DELTA_MILLIS >= summaryInterval_*1000) {
|
|
lastSummaryNotified_ = global::wallclock;
|
|
lastSummaryNotified_ = global::wallclock;
|
|
printProgressSummary(e->getRequestGroupMan()->getRequestGroups(), cols, e,
|
|
printProgressSummary(e->getRequestGroupMan()->getRequestGroups(), cols, e,
|
|
sizeFormatter);
|
|
sizeFormatter);
|