Skip to content

Commit 7b02117

Browse files
Fix size specifier (#1854), fixes #1727
1 parent 7d5a8ff commit 7b02117

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private class AllocatedMemoryMetricDescriptor : IMetricDescriptor
5252
public string Id => "Allocated Memory";
5353
public string DisplayName => "Allocated";
5454
public string Legend => "Allocated memory per single operation (managed only, inclusive, 1KB = 1024B)";
55-
public string NumberFormat => "N0";
55+
public string NumberFormat => "0.##";
5656
public UnitType UnitType => UnitType.Size;
5757
public string Unit => SizeUnit.B.Name;
5858
public bool TheGreaterTheBetter => false;

src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private class NativeCodeSizeMetricDescriptor : IMetricDescriptor
165165
public string Id => "Native Code Size";
166166
public string DisplayName => "Code Size";
167167
public string Legend => "Native code size of the disassembled method(s)";
168-
public string NumberFormat => "N0";
168+
public string NumberFormat => "0.##";
169169
public UnitType UnitType => UnitType.Size;
170170
public string Unit => SizeUnit.B.Name;
171171
public bool TheGreaterTheBetter => false;

0 commit comments

Comments
 (0)