Skip to content

Commit 5a6227b

Browse files
committed
Fix dotnet-counters console alignment
Text was oddly shifting one character to the right during updates. Fixed the off-by-one error in the update text positioning.
1 parent e0cd43a commit 5a6227b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tools/dotnet-counters/Exporters/ConsoleWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ public void AssignRowsAndInitializeDisplay()
114114
counter.Row = row++;
115115
if (counter.RenderValueInline)
116116
{
117-
Console.WriteLine($"{name}{FormatValue(counter.LastValue)}");
117+
Console.WriteLine($"{name} {FormatValue(counter.LastValue)}");
118118
}
119119
else
120120
{
121121
Console.WriteLine(name);
122122
foreach (ObservedTagSet tagSet in counter.TagSets.Values.OrderBy(t => t.Tags))
123123
{
124124
string tagName = MakeFixedWidth($"{new string(' ', 2 * Indent)}{tagSet.Tags}", Indent + maxNameLength);
125-
Console.WriteLine($"{tagName}{FormatValue(tagSet.LastValue)}");
125+
Console.WriteLine($"{tagName} {FormatValue(tagSet.LastValue)}");
126126
tagSet.Row = row++;
127127
}
128128
}

0 commit comments

Comments
 (0)