mirror of
https://git.openwrt.org/project/iwinfo.git
synced 2025-12-20 01:02:49 +08:00
Using average of previous average and the next value is highly imprecise. E.g. for values 20, 20, 20, 180 it would result in /average/ of 100 (instead of 60). Fix it by storing & using an info of how many samples were used for the previous calculation. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
1.6 KiB
1.6 KiB