Skip to content
Prev Previous commit
Next Next commit
Update comments
  • Loading branch information
rossgrambo committed Sep 11, 2024
commit ba1676c24940aa6c5f7cf6cdfd0dab45a30700ce
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public static void HandleEvaluationEvent(EvaluationEvent evaluationEvent, ILogge
}
}

// VariantAllocationPercentage
// VariantAssignmentPercentage
if (evaluationEvent.VariantAssignmentReason == VariantAssignmentReason.DefaultWhenEnabled)
{
// If the variant was assigned due to DefaultWhenEnabled, the percentage is 100% - all allocated percentiles
// If the variant was assigned due to DefaultWhenEnabled, the percentage reflects the unallocated percentiles
double allocatedPercentage = 0;

if (evaluationEvent.FeatureDefinition.Allocation?.Percentile != null)
Expand Down