summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vnstat2
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-vnstat2')
-rw-r--r--applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js7
-rw-r--r--applications/luci-app-vnstat2/po/en/vnstat2.po8
2 files changed, 6 insertions, 9 deletions
diff --git a/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js b/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js
index 10cd85641c..4d4bfd0dbe 100644
--- a/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js
+++ b/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js
@@ -58,13 +58,10 @@ return view.extend({
o = s.option(form.DummyValue, '_database');
o.load = function(section_id) {
- return fs.exec('/usr/bin/vnstat', ['--json', 'f', '1']).then(L.bind(function(result) {
+ return fs.exec('/usr/bin/vnstat', ['--dbiflist', '1']).then(L.bind(function(result) {
var databaseInterfaces = [];
if (result.code == 0) {
- var vnstatData = JSON.parse(result.stdout);
- for (var i = 0; i < vnstatData.interfaces.length; i++) {
- databaseInterfaces.push(vnstatData.interfaces[i].name);
- }
+ databaseInterfaces = result.stdout.trim().split('\n');
}
var configInterfaces = uci.get_first('vnstat', 'vnstat', 'interface') || [];
diff --git a/applications/luci-app-vnstat2/po/en/vnstat2.po b/applications/luci-app-vnstat2/po/en/vnstat2.po
index 30d1d9f75e..2b5075bd65 100644
--- a/applications/luci-app-vnstat2/po/en/vnstat2.po
+++ b/applications/luci-app-vnstat2/po/en/vnstat2.po
@@ -1,14 +1,14 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2022-07-03 10:18+0000\n"
-"Last-Translator: Hannu Nyman <hannu.nyman@iki.fi>\n"
+"PO-Revision-Date: 2023-11-18 22:00+0000\n"
+"Last-Translator: rygle <pittos@post.com>\n"
"Language-Team: English <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsvnstat2/en/>\n"
"Language: en\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.13.1-dev\n"
+"X-Generator: Weblate 5.2\n"
#: applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js:113
msgid "5 Minute"
@@ -67,7 +67,7 @@ msgstr ""
#: applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js:81
msgid "Interface"
-msgstr ""
+msgstr "Interface"
#: applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/config.js:45
msgid "Interfaces"