mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add counter to debug
This commit is contained in:
parent
0c1527b8b5
commit
8113bd379b
1 changed files with 3 additions and 0 deletions
|
@ -31,14 +31,17 @@ int get_bandwidth_iwinfo(__uint8_t *client_addr, float *rx_rate, float *tx_rate)
|
|||
|
||||
int sucess = 0;
|
||||
|
||||
int count = 0;
|
||||
while ((entry = readdir(dirp)) != NULL) {
|
||||
if (entry->d_type == DT_SOCK) {
|
||||
printf("TRY TO GET BANDWITH: %d\n", count);
|
||||
if(get_bandwith(entry->d_name, client_addr, rx_rate, tx_rate))
|
||||
{
|
||||
// bandwith found
|
||||
sucess = 1;
|
||||
break;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
}
|
||||
closedir(dirp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue