From a42778c616de586b4b986e0a0eac401676280e35 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Tue, 20 Mar 2018 17:32:31 +0100 Subject: [PATCH] fix exp thr --- src/storage/datastorage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index 908be6a..629a94c 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -419,7 +419,8 @@ void kick_clients(uint8_t bssid[], uint32_t id) { // update rssi int rssi = get_rssi_iwinfo(client_array[j].client_addr); int exp_thr = get_expected_throughput_iwinfo(client_array[j].client_addr); - printf("Expectd throughput %f Mbit/sec\n", iee80211_calculate_expected_throughput_mbit(exp_thr)); + double exp_thr_tmp = iee80211_calculate_expected_throughput_mbit(exp_thr); + printf("Expectd throughput %f Mbit/sec\n", exp_thr_tmp); if (rssi != INT_MIN) { pthread_mutex_unlock(&probe_array_mutex);