Bug Fix - summary report included deleted tasks

- Applied patch from Benjamin Tegarden to exclude deleted tasks from
  the summary report.
This commit is contained in:
Paul Beckingham 2009-03-14 13:47:48 -04:00
parent bdd1b16ba0
commit 2d2bd47075
4 changed files with 12 additions and 3 deletions

View file

@ -496,13 +496,18 @@ std::string handleReportSummary (TDB& tdb, T& task, Config& conf)
{
T task (completed[i]);
std::string project = task.getAttribute ("project");
countCompleted[project] = countCompleted[project] + 1;
++counter[project];
if (task.getStatus () == T::deleted)
continue;
++countCompleted[project];
time_t entry = ::atoi (task.getAttribute ("entry").c_str ());
time_t end = ::atoi (task.getAttribute ("end").c_str ());
if (entry && end)
{
sumEntry[project] = sumEntry[project] + (double) (end - entry);
++counter[project];
}
}
// Create a table for output.