PRoConEvents.MULTIbalancer.RemainingTicketPercent C# (CSharp) Method

RemainingTicketPercent() private method

private RemainingTicketPercent ( double tickets, double goal ) : double
tickets double
goal double
return double
        private double RemainingTicketPercent(double tickets, double goal)
        {
            if (goal == 0) {
            if (IsRush() && tickets > fMaxTickets && tickets < fRushMaxTickets) {
            double normalized = Math.Max(0, fMaxTickets - (fRushMaxTickets - tickets));
            return ((normalized / fMaxTickets) * 100.0);
            }
            return ((tickets / fMaxTickets) * 100.0);
            }
            return (((goal - tickets) / goal) * 100.0);
        }
MULTIbalancer