diff --git a/clang-tools-extra/clangd/ClangdLSPServer.cpp b/clang-tools-extra/clangd/ClangdLSPServer.cpp --- a/clang-tools-extra/clangd/ClangdLSPServer.cpp +++ b/clang-tools-extra/clangd/ClangdLSPServer.cpp @@ -1406,6 +1406,8 @@ WorkDoneProgressReport Report; Report.percentage = 100.0 * (Stats.Completed - Stats.LastIdle) / (Stats.Enqueued - Stats.LastIdle); + // Round down to 2 decimal places for readability. + Report.percentage = std::ceil(*Report.percentage * 100.0) / 100.0; Report.message = llvm::formatv("{0}/{1}", Stats.Completed - Stats.LastIdle, Stats.Enqueued - Stats.LastIdle);