gluon-status-page: show gateway_tq

The gateway_tq was added to respondd in #2596. Now, we also show it on
the status page.
This commit is contained in:
lemoer 2022-10-31 16:07:15 +01:00
parent 4936b416b8
commit a02ff964d5
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) + '%';
} }
} }