From: Michael Tremer Date: Tue, 21 Oct 2025 14:09:27 +0000 (+0000) Subject: sources: Correct rate information of hostapd stations X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbbf069948209cbd5eab61a6d3b038921a86abea;p=telemetry.git sources: Correct rate information of hostapd stations hostapd returns this in hundredth of kilobits. We will store it in bits. Signed-off-by: Michael Tremer --- diff --git a/src/daemon/sources/hostapd.c b/src/daemon/sources/hostapd.c index 314de83..9601f98 100644 --- a/src/daemon/sources/hostapd.c +++ b/src/daemon/sources/hostapd.c @@ -103,8 +103,8 @@ static int hostapd_submit_station(td_ctx* ctx, hostapd_station* station) { station->connected_time, station->inactive_msec, station->signal, station->last_ack_signal, station->rx_packets, station->tx_packets, station->rx_bytes, station->tx_bytes, - station->rx_rate * 100, station->rx_mcs, station->rx_vhtmcs, station->rx_vhtnss, - station->tx_rate * 100, station->tx_mcs, station->tx_vhtmcs, station->tx_vhtnss); + station->rx_rate * 100 * 1024, station->rx_mcs, station->rx_vhtmcs, station->rx_vhtnss, + station->tx_rate * 100 * 1024, station->tx_mcs, station->tx_vhtmcs, station->tx_vhtnss); } static int hostapd_parse(td_ctx* ctx, td_file* stdout, unsigned long lineno,