format credits with millions

This commit is contained in:
Florian Stinglmayr 2023-04-11 19:17:29 +02:00
parent 4cd0c02c67
commit 15fda7692e

View File

@ -19,8 +19,8 @@ public class VoucherFormat : LogFormatter {
} }
foreach (var m in missions) { foreach (var m in missions) {
ulong total = (ulong)m.Value.Sum(x => (decimal)x.TotalSum); long total = (long)m.Value.Sum(x => (decimal)x.TotalSum);
builder.AppendFormat("Handed in {0} vouchers: {1}\n", m.Key, Credits.FormatCredits(total)); builder.AppendFormat("Handed in {0} vouchers: {1}\n", m.Key, Credits.FormatMillions(total));
} }
return builder.ToString().Trim(); return builder.ToString().Trim();