Skip to content

Commit 4e4c6d7

Browse files
authored
[lldb/Format] Make progress count show thousands separators (NFC) (llvm#137446)
This patch changes the progress count formatting show thousands separator making it easier to read big numbers. Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 0c57f89 commit 4e4c6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Core/FormatEntity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ bool FormatEntity::Format(const Entry &entry, Stream &s,
19601960
if (Target *target = Target::GetTargetFromContexts(exe_ctx, sc)) {
19611961
if (auto progress = target->GetDebugger().GetCurrentProgressReport()) {
19621962
if (progress->total != UINT64_MAX) {
1963-
s.Format("[{0}/{1}]", progress->completed, progress->total);
1963+
s.Format("[{0:N}/{1:N}]", progress->completed, progress->total);
19641964
return true;
19651965
}
19661966
}

0 commit comments

Comments
 (0)