[Stats] Recorrect stats output

This commit is contained in:
Matt Nadareski
2016-06-29 13:19:14 -07:00
parent c41c171b13
commit 7220828aee
3 changed files with 14 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ namespace SabreTools.Helper
/// The current toolset version to be used by all child applications /// The current toolset version to be used by all child applications
/// </summary> /// </summary>
public static string Version = "v0.8.9"; public static string Version = "v0.8.9";
public static int HeaderHeight = 3;
// 0-byte file constants // 0-byte file constants
public static long SizeZero = 0; public static long SizeZero = 0;

View File

@@ -132,23 +132,15 @@ Please check the log folder if the stats scrolled offscreen");
} }
SortedDictionary<string, List<Rom>> newroms = DatTools.BucketByGame(datdata.Roms, false, true, logger, false); SortedDictionary<string, List<Rom>> newroms = DatTools.BucketByGame(datdata.Roms, false, true, logger, false);
string line = " Uncompressed size: " + Style.GetBytesReadable(datdata.TotalSize); logger.User(" Uncompressed size: " + Style.GetBytesReadable(datdata.TotalSize) + @"
logger.Log(line, Console.CursorTop, 0); Games found: " + (game == -1 ? newroms.Count : game) + @"
line = " Games found: " + (game == -1 ? newroms.Count : game); Roms found: " + datdata.RomCount + @"
logger.Log(line, Console.CursorTop + 1, 0); Disks found: " + datdata.DiskCount + @"
line = " Roms found: " + datdata.RomCount; Roms with CRC: " + datdata.CRCCount + @"
logger.Log(line, Console.CursorTop + 1, 0); Roms with MD5: " + datdata.MD5Count + @"
line = " Disks found: " + datdata.DiskCount; Roms with SHA-1: " + datdata.SHA1Count + @"
logger.Log(line, Console.CursorTop + 1, 0); Roms with Nodump status: " + datdata.NodumpCount + @"
line = " Roms with CRC: " + datdata.CRCCount; ");
logger.Log(line, Console.CursorTop + 1, 0);
line = " Roms with MD5: " + datdata.MD5Count;
logger.Log(line, Console.CursorTop + 1, 0);
line = " Roms with SHA-1: " + datdata.SHA1Count;
logger.Log(line, Console.CursorTop + 1, 0);
line = " Roms with Nodump status: " + datdata.NodumpCount;
logger.Log(line, Console.CursorTop + 1, 0);
logger.User("");
} }
} }
} }

View File

@@ -339,9 +339,10 @@ namespace SabreTools
} }
} }
// Now output the stats for the DAT (remaining) // Now output the stats for the built files
Console.SetCursorPosition(0, Console.CursorTop - 2); _logger.ClearBeneath(Constants.HeaderHeight);
_logger.User("Stats of the matched ROMs:".PadRight(79, ' ')); Console.SetCursorPosition(0, Constants.HeaderHeight + 1);
_logger.User("Stats of the matched ROMs:");
Stats.OutputStats(_matched, _logger, true); Stats.OutputStats(_matched, _logger, true);
return success; return success;