Betzalel.SimpleMulticastAnalyzer.Statistics.GetPercentage C# (CSharp) Method

GetPercentage() private static method

private static GetPercentage ( ulong part, ulong total ) : double
part ulong
total ulong
return double
        private static double GetPercentage(ulong part, ulong total)
        {
            return total == 0 ? 0 : Math.Round(part * 100 / (double)total, 2);
        }