Skip to content

Commit

Permalink
Fix dotnet-counters console alignment
Browse files Browse the repository at this point in the history
Text was oddly shifting one character to the right during
updates. Fixed the off-by-one error in the update text
positioning.
  • Loading branch information
noahfalk committed Aug 6, 2021
1 parent e0cd43a commit 582fdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tools/dotnet-counters/Exporters/ConsoleWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void CounterPayloadReceived(CounterPayload payload, bool pauseCmdSet)
}

int row = counter.RenderValueInline ? counter.Row : tagSet.Row;
Console.SetCursorPosition(Indent + maxNameLength + 1, row);
Console.SetCursorPosition(Indent + maxNameLength, row);
Console.Write(FormatValue(payload.Value));
}
}
Expand Down

0 comments on commit 582fdce

Please sign in to comment.