From 15fda7692e16ec2d2997617ea07c24304d2811c5 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Tue, 11 Apr 2023 19:17:29 +0200 Subject: [PATCH] format credits with millions --- EliteBGS/LogGenerator/VoucherFormat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EliteBGS/LogGenerator/VoucherFormat.cs b/EliteBGS/LogGenerator/VoucherFormat.cs index 4f16fbf..23c0fe2 100644 --- a/EliteBGS/LogGenerator/VoucherFormat.cs +++ b/EliteBGS/LogGenerator/VoucherFormat.cs @@ -19,8 +19,8 @@ public class VoucherFormat : LogFormatter { } foreach (var m in missions) { - ulong total = (ulong)m.Value.Sum(x => (decimal)x.TotalSum); - builder.AppendFormat("Handed in {0} vouchers: {1}\n", m.Key, Credits.FormatCredits(total)); + long total = (long)m.Value.Sum(x => (decimal)x.TotalSum); + builder.AppendFormat("Handed in {0} vouchers: {1}\n", m.Key, Credits.FormatMillions(total)); } return builder.ToString().Trim();