Skip to content

Commit

Permalink
Render ProgressBar value in double with provided digits precision
Browse files Browse the repository at this point in the history
  • Loading branch information
sufyannisar committed Jan 28, 2024
1 parent 39b9ab1 commit 2b5e570
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Hangfire.Console/Dashboard/ConsoleRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static void RenderLine(StringBuilder builder, ConsoleLine line, DateTime

if (isProgressBar)
{
builder.AppendFormat(CultureInfo.InvariantCulture, "<div class=\"pv\" style=\"width:{0:0.#}%\" data-value=\"{0:f0}\"></div>", line.ProgressValue!.Value);
builder.AppendFormat(CultureInfo.InvariantCulture, "<div class=\"pv\" style=\"width:{0}%\" data-value=\"{0}\"></div>", line.ProgressValue!.Value);
}
else
{
Expand Down Expand Up @@ -249,6 +249,7 @@ public static void RenderLineBuffer(StringBuilder builder, IConsoleStorage stora

private class DummyPage : RazorPage
{
public override void Execute() { }
public override void Execute()
{ }
}
}
}

0 comments on commit 2b5e570

Please sign in to comment.