From fa34e72001d59e08bea2ec7a5a7587a2646f2e5e Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 10 Sep 2021 18:10:25 -0700 Subject: [PATCH] Report improvements. --- meshuser.js | 4 ++-- views/default.handlebars | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meshuser.js b/meshuser.js index cc485f95..ff813cbe 100644 --- a/meshuser.js +++ b/meshuser.js @@ -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 diff --git a/views/default.handlebars b/views/default.handlebars index dcf81e73..ee95df53 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -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 = '', firstItem; var sumByCol = null; // Indicate by what colum we sum by var sumByValues = []; // Indicate by what values we sum by