diff --git a/Credits.cs b/Credits.cs index b220379..292ef6a 100644 --- a/Credits.cs +++ b/Credits.cs @@ -4,6 +4,8 @@ namespace EDJournal { public class Credits { public static string FormatCredits(int amount) { var format = CultureInfo.CurrentCulture.NumberFormat; + format.NumberGroupSeparator = ","; + format.NumberGroupSizes = new int[1] { 3 }; if ((amount % 1000000) == 0) { amount /= 1000000; return string.Format("{0}M CR", amount.ToString(format)); diff --git a/PlayerJournal.cs b/PlayerJournal.cs index 3576753..8e6280a 100644 --- a/PlayerJournal.cs +++ b/PlayerJournal.cs @@ -38,9 +38,7 @@ namespace EDJournal { public JournalFile GetLastFile() { var lastfile = Files - .GroupBy(x => x.Timestamp) - .Last() - .ToArray() + .OrderBy(x => x.Timestamp) .Last() ; return lastfile;