Skip to content

Commit

Permalink
Cap effective miss count to total hits
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Oct 30, 2024
1 parent 50be7fb commit c1a4038
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ protected override PerformanceAttributes CreatePerformanceAttributes(ScoreInfo s
}

effectiveMissCount = Math.Max(countMiss, effectiveMissCount);
effectiveMissCount = Math.Min(totalHits, effectiveMissCount);

double multiplier = PERFORMANCE_BASE_MULTIPLIER;

Expand Down

0 comments on commit c1a4038

Please sign in to comment.