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
inputRate
doubleThe input rate of the interface.
The unit should be consistent betweeninputRate
,outputRate
andinterfaceSpeed
.outputRate
doubleThe output rate of the interface.
The unit should be consistent betweeninputRate
,outputRate
andinterfaceSpeed
.interfaceSpeed
doubleThe speed of the interface (the max rate supported).
The unit should be consistent betweeninputRate
,outputRate
andinterfaceSpeed
.duplexStatus
DuplexStatusThe current mode of operation of the MAC entity.
Returns
- double
The interface utilization in percent.