Update status view because of ubus value rename
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
state = '<%:Online%>';
time = String.format(
'<div><strong>Uptime: </strong>%s</div>',
- secondsToString(status.interfaces[iface].uptime)
+ secondsToString(status.interfaces[iface].online)
);
css = 'success';
break;
state = '<%:Offline%>';
time = String.format(
'<div><strong>Downtime: </strong>%s</div>',
- secondsToString(status.interfaces[iface].downtime)
+ secondsToString(status.interfaces[iface].offline)
);
css = 'danger';
break;