Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
3eb6e240
Commit
3eb6e240
authored
Feb 25, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check_system/check-blocked-web: show speed in Mbit/s, drop decimals >= 1
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
88d692e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
check-blocked-web.py
check_system/check-blocked-web.py
+3
-1
No files found.
check_system/check-blocked-web.py
View file @
3eb6e240
...
@@ -130,7 +130,9 @@ function render(data) {
...
@@ -130,7 +130,9 @@ function render(data) {
var children = [document.createTextNode(label)];
var children = [document.createTextNode(label)];
if (ch.speed !== null) {
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));
cells.push(el('td', {cls: cls}, children));
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment