luci-base: network.js: prefer netifd traffic stats over getifaddrs() ones
authorJo-Philipp Wich <jo@mein.io>
Thu, 17 Oct 2019 07:19:03 +0000 (09:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 17 Oct 2019 07:21:04 +0000 (09:21 +0200)
commit51b519e55ec7daa62c343e7f776fa5a1bcc3d8bb
tree1fc9bc2bb6ab62d192e92740f1b6052adabd01c4
parent5f54983ad070de53f20a4b0bb0c7004cc1eca44a
luci-base: network.js: prefer netifd traffic stats over getifaddrs() ones

Overwrite the traffic statistics reported by getifaddrs() with the ones
reported by the network.device/status procedure if available as the
getifaddr() stats are limited to 32bit counters.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/network.js