fix logic bug that prevents proofsystem reports.

This commit is contained in:
ThatBen 2025-03-05 18:25:59 +01:00
parent c15de74302
commit c47d133db0
No known key found for this signature in database
GPG Key ID: 62C543548433D43E

View File

@ -86,7 +86,7 @@ namespace CodexContractsPlugin.ChainMonitor
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));