2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed the bug that --summary-interval=0 doesn't work. The
	summary is printed repeatedly.
	* src/ConsoleStatCalc.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-12-24 10:51:48 +00:00
parent 5d72f3954b
commit 3b06e49b48
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that --summary-interval=0 doesn't work. The summary
is printed repeatedly.
* src/ConsoleStatCalc.cc
2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
* Release 1.1.0

View File

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