From 841f8bfb846ad198050f9f85cbc29a32ec6d0c34 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 19 Oct 2023 23:25:55 +0200 Subject: [PATCH] Documents/Pdf: fix progression --- Elwig/Documents/Pdf.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/Documents/Pdf.cs b/Elwig/Documents/Pdf.cs index 7b0cecf..5f466aa 100644 --- a/Elwig/Documents/Pdf.cs +++ b/Elwig/Documents/Pdf.cs @@ -47,7 +47,7 @@ namespace Elwig.Documents { return Array.Empty(); } else if (line.StartsWith("progress:")) { var parts = line[9..].Trim().Split('/').Select(int.Parse).ToArray(); - progress?.Report(parts[0] / (double)parts[1]); + progress?.Report(100.0 * parts[0] / parts[1]); } else if (line.StartsWith("success:")) { var m = Regex.Match(line, @"\(([0-9, ]+)\)"); return m.Groups[1].Value.Split(", ").Select(int.Parse);