Skip to content

Commit

Permalink
fix logic bug that prevents proofsystem reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens committed Mar 5, 2025
1 parent c15de74 commit c47d133
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public PeriodMonitorResult(PeriodReport[] reports)

private void CalcStats()
{
IsEmpty = Reports.Any(r => r.TotalProofsRequired > 0);
IsEmpty = Reports.All(r => r.TotalProofsRequired == 0);
PeriodLow = Reports.Min(r => r.PeriodNumber);
PeriodHigh = Reports.Max(r => r.PeriodNumber);
AverageNumSlots = Reports.Average(r => Convert.ToSingle(r.TotalNumSlots));
Expand Down

0 comments on commit c47d133

Please sign in to comment.