luci-app-mwan3: rename ubus values
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 28 Jun 2019 11:54:43 +0000 (13:54 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 10 Jul 2019 07:18:32 +0000 (09:18 +0200)
Update status view because of ubus value rename

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm

index 2e7b490f4f51f23b4cc8f021bf004343389b8c63..3cb0ca224e5a9d7449a2c051e2b7f02a760565e8 100644 (file)
@@ -34,7 +34,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
                                                        state = '<%:Online%>';
                                                        time = String.format(
                                                                '<div><strong>Uptime: </strong>%s</div>',
-                                                               secondsToString(status.interfaces[iface].uptime)
+                                                               secondsToString(status.interfaces[iface].online)
                                                        );
                                                        css = 'success';
                                                        break;
@@ -42,7 +42,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
                                                        state = '<%:Offline%>';
                                                        time = String.format(
                                                                '<div><strong>Downtime: </strong>%s</div>',
-                                                               secondsToString(status.interfaces[iface].downtime)
+                                                               secondsToString(status.interfaces[iface].offline)
                                                        );
                                                        css = 'danger';
                                                        break;