From dfa82b44946cd3b73cd4a943df3e86783639a1eb Mon Sep 17 00:00:00 2001 From: Giovanni Giacobbi Date: Tue, 19 Jan 2021 23:06:40 +0200 Subject: luci-mod-status,luci-app-statistics: Fix case for 'Bit/s' to 'bit/s' Signed-off-by: Giovanni Giacobbi [fix conflict, reword commit title] Signed-off-by: Hannu Nyman --- .../htdocs/luci-static/resources/view/status/wireless.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/luci-mod-status/htdocs/luci-static') 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); -- cgit v1.2.3