Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 25 additions & 23 deletions src/skyscraper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,31 +841,33 @@ void Skyscraper::checkThreads() {
if (!generateGamelist || totalFiles > 0) {
ncprintf(
"\033[1;34m---- And here are some neat stats :) ----\033[0m\n");
}
if (!generateGamelist) {
ncprintf("Total completion time: \033[1;33m%s\033[0m\n\n",
secsToString(timer.elapsed()).toStdString().c_str());
}
if (totalFiles > 0) {
if (found > 0) {
ncprintf("Average search match: \033[1;33m%d%%\033[0m\n",
(int)((double)avgSearchMatch / (double)found));
ncprintf("Average entry completeness: \033[1;33m%d%%\033[0m\n\n",
(int)((double)avgCompleteness / (double)found));
}
ncprintf("\033[1;34mTotal number of games: %d\033[0m\n", totalFiles);
ncprintf("\033[1;32mSuccessfully processed games: %d\033[0m\n", found);
ncprintf("\033[1;33mSkipped games: %d\033[0m", notFound);
if (notFound > 0) {
QString skippedFn = PathTools::concatPath(
Config::getSkyFolder(Config::SkyFolderType::LOG),
skippedFileString);
ncprintf(" (Filenames saved to '\033[1;33m%s\033[0m')",
PathTools::pathToStdStr(skippedFn).c_str());
if (!generateGamelist) {
ncprintf("Total completion time: \033[1;33m%s\033[0m\n\n",
secsToString(timer.elapsed()).toStdString().c_str());
}
if (totalFiles > 0) {
if (found > 0) {
ncprintf("Average search match: \033[1;33m%d%%\033[0m\n",
(int)((double)avgSearchMatch / (double)found));
ncprintf(
"Average entry completeness: \033[1;33m%d%%\033[0m\n\n",
(int)((double)avgCompleteness / (double)found));
}
ncprintf("\033[1;34mTotal number of games: %d\033[0m\n",
totalFiles);
ncprintf("\033[1;32mSuccessfully processed games: %d\033[0m\n",
found);
ncprintf("\033[1;33mSkipped games: %d\033[0m", notFound);
if (notFound > 0) {
QString skippedFn = PathTools::concatPath(
Config::getSkyFolder(Config::SkyFolderType::LOG),
skippedFileString);
ncprintf(" (Filenames saved to '\033[1;33m%s\033[0m')",
PathTools::pathToStdStr(skippedFn).c_str());
}
ncprintf("\n\n");
}
ncprintf("\n\n");
}

// All done, now clean up and exit to terminal
cleanUp();
emit finished();
Expand Down
Loading