Skip to content

Commit

Permalink
Small fixes and bump to 0.1.21 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyredondo authored Sep 19, 2024
1 parent 7040d4a commit 7f9d739
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project>
<PropertyGroup>
<Version>0.1.20</Version>
<Version>0.1.21</Version>
<Authors>Tony Redondo, Grégory Léocadie</Authors>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<ServerGarbageCollection>false</ServerGarbageCollection>
</PropertyGroup>

<ItemGroup>
Expand Down
15 changes: 13 additions & 2 deletions src/TimeItSharp.Common/Exporters/ConsoleExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,26 @@ static void GenerateDistributionChart(Dictionary<string, ScenarioResult> dataSer
}
else if (seriesIndex == 0)
{
linePrefix += "┌ ";
if (seriesCount == 2)
{
linePrefix = rangeStr + " ┌ ";
}
else
{
linePrefix += "┌ ";
}
}
else if (seriesIndex == seriesCount - 1)
{
linePrefix += "└ ";
}
else if (seriesIndex == seriesCount / 2)
{
linePrefix = rangeStr + " \u2524 ";
}
else
{
linePrefix = rangeStr + " ├ ";
linePrefix += "\u2502 ";
}

// Use AnsiConsole to print colored bars with counts
Expand Down

0 comments on commit 7f9d739

Please sign in to comment.