Report improvements.

This commit is contained in:
Ylian Saint-Hilaire 2021-09-10 18:10:25 -07:00
parent 9563f34700
commit fa34e72001
2 changed files with 3 additions and 3 deletions

View File

@ -5458,8 +5458,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// Add traffic colums
if (command.showTraffic) {
data.columns.push({ id: 'bytesin', title: "Bytes In", format: 'bytes', align: 'center', sumBy: 'protocol' });
data.columns.push({ id: 'bytesout', title: "Bytes Out", 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: "bytesout", format: 'bytes', align: 'center', sumBy: 'protocol' });
}
// Rows

View File

@ -14983,7 +14983,7 @@
}
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 sumByCol = null; // Indicate by what colum we sum by
var sumByValues = []; // Indicate by what values we sum by