Method CalculateUtilization
- Namespace
- Skyline.DataMiner.Utils.Interfaces
- Assembly
- Skyline.DataMiner.Utils.Interfaces.dll
CalculateUtilization(double, double, double, DuplexStatus)
Calculates an interface utilization.
public static double CalculateUtilization(double inputRate, double outputRate, double interfaceSpeed, DuplexStatus duplexStatus)
Parameters
inputRatedoubleThe input rate of the interface.
The unit should be consistent betweeninputRate,outputRateandinterfaceSpeed.outputRatedoubleThe output rate of the interface.
The unit should be consistent betweeninputRate,outputRateandinterfaceSpeed.interfaceSpeeddoubleThe speed of the interface (the max rate supported).
The unit should be consistent betweeninputRate,outputRateandinterfaceSpeed.duplexStatusDuplexStatusThe current mode of operation of the MAC entity.
Returns
- double
The interface utilization in percent.