mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Report improvements.
This commit is contained in:
parent
9563f34700
commit
fa34e72001
2 changed files with 3 additions and 3 deletions
|
@ -5458,8 +5458,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
||||||
|
|
||||||
// Add traffic colums
|
// Add traffic colums
|
||||||
if (command.showTraffic) {
|
if (command.showTraffic) {
|
||||||
data.columns.push({ id: 'bytesin', title: "Bytes In", format: 'bytes', align: 'center', sumBy: 'protocol' });
|
data.columns.push({ id: 'bytesin', title: "bytesin", format: 'bytes', align: 'center', sumBy: 'protocol' });
|
||||||
data.columns.push({ id: 'bytesout', title: "Bytes Out", format: 'bytes', align: 'center', sumBy: 'protocol' });
|
data.columns.push({ id: 'bytesout', title: "bytesout", format: 'bytes', align: 'center', sumBy: 'protocol' });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rows
|
// Rows
|
||||||
|
|
|
@ -14983,7 +14983,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderReport(r) {
|
function renderReport(r) {
|
||||||
var colTranslation = { time: "Time", device: "Device", session: "Session", user: "User", length: "Length" }
|
var colTranslation = { time: "Time", device: "Device", session: "Session", user: "User", length: "Length", bytesin: "Bytes In", bytesout: "Bytes Out" }
|
||||||
var x = '<table style=width:100%>', firstItem;
|
var x = '<table style=width:100%>', firstItem;
|
||||||
var sumByCol = null; // Indicate by what colum we sum by
|
var sumByCol = null; // Indicate by what colum we sum by
|
||||||
var sumByValues = []; // Indicate by what values we sum by
|
var sumByValues = []; // Indicate by what values we sum by
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue