Skip to content

Commit

Permalink
Fix Release build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Aug 18, 2024
1 parent 1c3a99a commit bab11e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tgstation.Server.Host/Jobs/JobProgressReporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ public JobProgressReporter CreateSection(string? newStageName, double percentage
sectionReservations = 0;
}

if (percentage + sectionReservations.Value > 1.0001) // floating point >.<
// floating point >.<
if (percentage + sectionReservations.Value > 1.0001)
{
var remainingPercentage = 1.0 - sectionReservations.Value;
logger.LogError(
Expand Down

0 comments on commit bab11e6

Please sign in to comment.