CmdReportSummary: No longer attempts to render empty results

This commit is contained in:
Paul Beckingham 2016-05-01 16:14:01 -04:00
parent 1b2407e463
commit cc5115b5d7

View file

@ -117,9 +117,12 @@ int CmdReportSummary (
table.set (table.addRow (), 7, " ", Color ("underline"));
table.set (table.addRow (), 7, Duration (grand_total).format ());
std::cout << '\n'
<< table.render ()
<< '\n';
if (table.rows () > 2)
std::cout << '\n'
<< table.render ()
<< '\n';
else
std::cout << "No filtered data found.\n";
return 0;
}