diff options
author | Giovanni Giacobbi <giovanni@giacobbi.net> | 2021-01-19 23:06:40 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2021-01-19 23:11:33 +0200 |
commit | dfa82b44946cd3b73cd4a943df3e86783639a1eb (patch) | |
tree | 2d1656f000990e6b00a3c5750738478129a47a76 /modules/luci-mod-status/htdocs/luci-static | |
parent | cc7f420c5f67c4a2961edd89f918dc0363abd5c2 (diff) |
luci-mod-status,luci-app-statistics: Fix case for 'Bit/s' to 'bit/s'
Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
[fix conflict, reword commit title]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js index a7fa69095c..0fdd3d56e7 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js @@ -286,13 +286,13 @@ return view.extend({ E('table', { 'class': 'table', 'style': 'width:100%;table-layout:fixed' }, [ E('tr', { 'class': 'tr' }, [ E('td', { 'class': 'td right top' }, E('strong', { 'style': 'border-bottom:2px solid green' }, [ _('Phy Rate:') ])), - E('td', { 'class': 'td', 'id': 'rate_bw_cur' }, [ '0 MBit/s' ]), + E('td', { 'class': 'td', 'id': 'rate_bw_cur' }, [ '0 Mbit/s' ]), E('td', { 'class': 'td right top' }, E('strong', {}, [ _('Average:') ])), - E('td', { 'class': 'td', 'id': 'rate_bw_avg' }, [ '0 MBit/s' ]), + E('td', { 'class': 'td', 'id': 'rate_bw_avg' }, [ '0 Mbit/s' ]), E('td', { 'class': 'td right top' }, E('strong', {}, [ _('Peak:') ])), - E('td', { 'class': 'td', 'id': 'rate_bw_peak' }, [ '0 MBit/s' ]) + E('td', { 'class': 'td', 'id': 'rate_bw_peak' }, [ '0 Mbit/s' ]) ]) ]) ])); @@ -318,9 +318,9 @@ return view.extend({ this.updateGraph(ifname, csvg2, [ { line: 'rate', multiply: 0.001 } ], function(svg, info) { var G = svg.firstElementChild, tab = svg.parentNode; - G.getElementById('label_25').firstChild.data = '%.2f %s'.format(info.label_25, _('MBit/s')); - G.getElementById('label_50').firstChild.data = '%.2f %s'.format(info.label_50, _('MBit/s')); - G.getElementById('label_75').firstChild.data = '%.2f %s'.format(info.label_75, _('MBit/s')); + G.getElementById('label_25').firstChild.data = '%.2f %s'.format(info.label_25, _('Mbit/s')); + G.getElementById('label_50').firstChild.data = '%.2f %s'.format(info.label_50, _('Mbit/s')); + G.getElementById('label_75').firstChild.data = '%.2f %s'.format(info.label_75, _('Mbit/s')); tab.querySelector('#scale2').firstChild.data = _('(%d minute window, %d second interval)').format(info.timeframe, info.interval); |