Return actual percentage for wifi_perc()
authorparazyd <parazyd@dyne.org>
Tue, 24 Oct 2017 09:03:17 +0000 (11:03 +0200)
committerAaron Marcher <me@drkhsh.at>
Tue, 24 Oct 2017 09:16:54 +0000 (11:16 +0200)
commitd2988c72e3e77e188fda0176ce4969322e69fae9
treecc52e57f10c40e18a560ef2ff6c685a282a68459
parent7246dc4381c6c95454672a5c1aff65a02d6d3747
Return actual percentage for wifi_perc()

Implement basic percentage calculation for wifi_perc. With this
commit, the function returns correct percentage, since the max
of what /proc/net/wireless returns is 70.
components/wifi.c