luci-app-vnstat2: use more efficient way to get database interfaces 6704/head
authorJan Hoffmann <jan@3e8.eu>
Sat, 18 Nov 2023 08:52:45 +0000 (09:52 +0100)
committerJan Hoffmann <jan@3e8.eu>
Sat, 18 Nov 2023 08:52:45 +0000 (09:52 +0100)
commit3ac4f567dfdfd6ee989ceffb025241e605790b6d
treee338880f0df823f6cb2dd345f18abb284a4b6c8d
parent63d5e239633371ae19b61038c1c7e8c11c2fc75f
luci-app-vnstat2: use more efficient way to get database interfaces

The currently used command "vnstat --json f 1" can be very slow when the
database contains many entries. This can result in an XHR timeout error
on the configuration page.

Use the "--dbiflist" option instead, which was added in vnStat 2.7.

Fixes: #6702
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js