From d3d01ac4e7ed7df383ad4c68f5cb43ef7e1eb9e3 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 23 Jan 2021 14:44:56 -0800 Subject: [PATCH] Fix progress bar label % showing 0 int / int when x/y < 0 will always show 0 when dividing raw ints :P --- pk3DS/GarcUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/GarcUtil.cs b/pk3DS/GarcUtil.cs index 4351f39..9cd55cf 100644 --- a/pk3DS/GarcUtil.cs +++ b/pk3DS/GarcUtil.cs @@ -48,7 +48,7 @@ private static void GARC_UnpackProgressed(object sender, GARC.UnpackProgressedEv if (Progress.InvokeRequired) Progress.Invoke((MethodInvoker)(() => Progress.PerformStep())); else Progress.PerformStep(); - string update = $"{e.Current / e.Total:P2} - {e.Current}/{e.Total}"; + string update = $"{((double)e.Current / e.Total):P2} - {e.Current}/{e.Total}"; if (Label.InvokeRequired) { Label.Invoke((MethodInvoker)delegate { Label.Text = update; });