GetClientAvgChoke Function

Returns the client's average packet choke, values go from 0 to 1 (for percentages).

float GetClientAvgChoke(int client, NetFlow flow)

Parameters

int client

Player's index.

NetFlow flow

Traffic flowing direction.

Return Value

Average packet loss, or -1 if network info is not available.

Errors

Invalid client index, client not connected, or fake client.