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:
parent
4936b416b8
commit
a02ff964d5
@ -214,7 +214,7 @@
|
||||
<tr><th><%:Load average%></th><td><%= statistics('loadavg', 'decimal') %></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><%: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>
|
||||
</table>
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -133,6 +133,9 @@
|
||||
}
|
||||
|
||||
return 'via ' + addr + ' (unknown iface)';
|
||||
},
|
||||
'tq': function(value) {
|
||||
return formatNumber(100/255 * value, 1) + '%';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user