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);