fix get_bandwith function

This commit is contained in:
PolynomialDivision 2017-12-12 13:00:37 +01:00
parent ff36ff63bb
commit 2e13d10683

View file

@ -34,8 +34,10 @@ int get_bandwidth_iwinfo(__uint8_t *client_addr, float *rx_rate, float *tx_rate)
while ((entry = readdir(dirp)) != NULL) {
if (entry->d_type == DT_SOCK) {
if(get_bandwith(entry->d_name, client_addr, rx_rate, tx_rate))
{
sucess = 1;
break;
}
}
}
closedir(dirp);