Commit 3eb6e240 authored by Vitaly Lipatov's avatar Vitaly Lipatov

check_system/check-blocked-web: show speed in Mbit/s, drop decimals >= 1

parent 88d692e3
......@@ -130,7 +130,9 @@ function render(data) {
var children = [document.createTextNode(label)];
if (ch.speed !== null) {
children.push(el('span', {cls: 'speed', text: ch.speed + ' MB/s'}));
var mbits = ch.speed * 8;
var txt = (mbits < 1 ? mbits.toFixed(1) : Math.round(mbits)) + ' Mbit/s';
children.push(el('span', {cls: 'speed', text: txt}));
}
cells.push(el('td', {cls: cls}, children));
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment