From 3b06e49b489993790f41fb71e9d1e467c3499ec2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 24 Dec 2008 10:51:48 +0000 Subject: [PATCH] 2008-12-24 Tatsuhiro Tsujikawa Fixed the bug that --summary-interval=0 doesn't work. The summary is printed repeatedly. * src/ConsoleStatCalc.cc --- ChangeLog | 6 ++++++ src/ConsoleStatCalc.cc | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5de1b25b..7175acaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-24 Tatsuhiro Tsujikawa + + Fixed the bug that --summary-interval=0 doesn't work. The summary + is printed repeatedly. + * src/ConsoleStatCalc.cc + 2008-12-23 Tatsuhiro Tsujikawa * Release 1.1.0 diff --git a/src/ConsoleStatCalc.cc b/src/ConsoleStatCalc.cc index fb36451a..8b8f9d56 100644 --- a/src/ConsoleStatCalc.cc +++ b/src/ConsoleStatCalc.cc @@ -184,7 +184,8 @@ ConsoleStatCalc::calculateStat(const RequestGroupManHandle& requestGroupMan, } std::ostringstream o; if(requestGroupMan->countRequestGroup() > 0) { - if(_lastSummaryNotified.elapsed(_summaryInterval)) { + if((_summaryInterval > 0) && + _lastSummaryNotified.elapsed(_summaryInterval)) { _lastSummaryNotified.reset(); printProgressSummary(requestGroupMan->getRequestGroups(), cols); std::cout << "\n";