| 62 | } |
| 63 | |
| 64 | void Executor::reportStatus(std::size_t fileindex, std::size_t filecount, std::size_t sizedone, std::size_t sizetotal) |
| 65 | { |
| 66 | if (filecount > 1) { |
| 67 | std::ostringstream oss; |
| 68 | const unsigned long percentDone = (sizetotal > 0) ? (100 * sizedone) / sizetotal : (100 * fileindex / filecount); |
| 69 | oss << fileindex << '/' << filecount |
| 70 | << " files checked " << percentDone |
| 71 | << "% done"; |
| 72 | mErrorLogger.reportOut(oss.str(), Color::FgBlue); |
| 73 | } |
| 74 | } |
| 75 |