diff --git a/src/report.cpp b/src/report.cpp index af8d8a8e..39992683 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -18,6 +18,7 @@ Report::Report() { current_entry = ""; nEntries = 0; iVerbose = -2; + iDefaultVerbose = -2; iProcReport = 0; divider = ">"; divider_length = divider.length(); @@ -85,7 +86,7 @@ void Report::enter(std::string input, int &iFunction) { iCurrentFunction = iEntry; // Sometimes it is good to uncomment this line and see what is happening: - //std::cout << "iLevel : " << iLevel << " " << current_entry << "\n"; + // std::cout << "iLevel : " << iLevel << " " << current_entry << "\n"; print(iLevel, "Entering function : " + current_entry); } @@ -140,8 +141,8 @@ void Report::times() { if (iVerbose >= 0) { std::cout << "Timing Summary :\n"; float min_timing = entries[0].timing_total * TimingPercent / 100.0; - std::cout << " --> Setting min timing to : " << min_timing << "\n"; - + if (min_timing < 0.01) + min_timing = 0.01; for (int i = 0; i < nEntries; i++) { if (entries[i].iLevel <= iTimingDepth && entries[i].timing_total >= min_timing) { @@ -198,7 +199,7 @@ void Report::report_errors() { int Report::test_verbose(int iLevel) { int iPass = 0; - if (iLevel <= iVerbose) { + if (iLevel <= iVerbose && iVerbose > -1) { iPass = 1; for (int iL = 0; iL < iLevel; iL++)