Report improvements.

Ylian Saint-Hilaire committed Sep 10, 2021 at 18:10 UTC fa34e72001d59e08bea2ec7a5a7587a2646f2e5e
2 files changed +3 -3
meshuser.js
+2 -2
@@ -5458,8 +5458,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
5458
5459 // Add traffic colums
5460 if (command.showTraffic) {
5461 - data.columns.push({ id: 'bytesin', title: "Bytes In", format: 'bytes', align: 'center', sumBy: 'protocol' });
5462 - data.columns.push({ id: 'bytesout', title: "Bytes Out", format: 'bytes', align: 'center', sumBy: 'protocol' });
5461 + data.columns.push({ id: 'bytesin', title: "bytesin", format: 'bytes', align: 'center', sumBy: 'protocol' });
5462 + data.columns.push({ id: 'bytesout', title: "bytesout", format: 'bytes', align: 'center', sumBy: 'protocol' });
5463 }
5464
5465 // Rows
views/default.handlebars
+1 -1
@@ -14983,7 +14983,7 @@
14983 }
14984
14985 function renderReport(r) {
14986 - var colTranslation = { time: "Time", device: "Device", session: "Session", user: "User", length: "Length" }
14986 + var colTranslation = { time: "Time", device: "Device", session: "Session", user: "User", length: "Length", bytesin: "Bytes In", bytesout: "Bytes Out" }
14987 var x = '<table style=width:100%>', firstItem;
14988 var sumByCol = null; // Indicate by what colum we sum by
14989 var sumByValues = []; // Indicate by what values we sum by