From 01e5e773ebea6a90a40a4351535e2b1100c2bf4d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 12 Apr 2009 02:10:05 -0400 Subject: [PATCH] Enhancement - stats report - Rearranged sequence of stats report to make more sense, with counts first and statistics (derived data) last. --- src/report.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/report.cpp b/src/report.cpp index 314af719a..cdf2a6a79 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -1792,6 +1792,13 @@ std::string handleReportStats (TDB& tdb, T& task, Config& conf) << "Deleted " << deletedT << std::endl << "Total " << totalT << std::endl; + out << "Annotations " << annotationsT << std::endl; + out << "Unique tags " << allTags.size () << std::endl; + out << "Projects " << allProjects.size () << std::endl; + + if (totalT) + out << "Tasks tagged " << std::setprecision (3) << (100.0 * taggedT / totalT) << "%" << std::endl; + if (tasks.size ()) { Date e (earliest); @@ -1816,14 +1823,7 @@ std::string handleReportStats (TDB& tdb, T& task, Config& conf) << std::endl; if (totalT) - { out << "Average desc length " << (int) (descLength / totalT) << " characters" << std::endl; - out << "Tasks tagged " << std::setprecision (3) << (100.0 * taggedT / totalT) << "%" << std::endl; - } - - out << "Annotations " << annotationsT << std::endl; - out << "Unique tags " << allTags.size () << std::endl; - out << "Projects " << allProjects.size () << std::endl; return out.str (); }