Merge pull request #2690 from lemoer/pr_batman_respondd_addition_1_ui

gluon-status-page: show gateway_tq
This commit is contained in:
Jan-Niklas Burfeind 2022-12-15 22:40:40 +01:00 committed by GitHub
commit 8ad1d7a2b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -214,7 +214,7 @@
<tr><th><%:Load average%></th><td><%= statistics('loadavg', 'decimal') %></td></tr> <tr><th><%:Load average%></th><td><%= statistics('loadavg', 'decimal') %></td></tr>
<tr><th><%:RAM%></th><td><%= statistics('memory', 'memory') %></td></tr> <tr><th><%:RAM%></th><td><%= statistics('memory', 'memory') %></td></tr>
<tr><th><%:Filesystem%></th><td><%= statistics('rootfs_usage', 'percent') %></td></tr> <tr><th><%:Filesystem%></th><td><%= statistics('rootfs_usage', 'percent') %></td></tr>
<tr><th><%:Gateway%></th><td><%= statistics('gateway') %><br><%= statistics('gateway_nexthop', 'neighbour') %></td></tr> <tr><th><%:Gateway%></th><td><%= statistics('gateway') %> (TQ: <%= statistics('gateway_tq', 'tq') %>)<br><%= statistics('gateway_nexthop', 'neighbour') %></td></tr>
</tbody> </tbody>
</table> </table>

File diff suppressed because one or more lines are too long

View File

@ -133,6 +133,9 @@
} }
return 'via ' + addr + ' (unknown iface)'; return 'via ' + addr + ' (unknown iface)';
},
'tq': function(value) {
return formatNumber(100/255 * value, 1) + '%';
} }
} }