diff --git a/meshuser.js b/meshuser.js index 448d1f01..862bd3a1 100644 --- a/meshuser.js +++ b/meshuser.js @@ -5539,7 +5539,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use }); } - if (command.type == 2) { // This is the user bandwidth usage report. + if (command.type == 2) { // This is the user traffic usage report. // If we are not user administrator on this site, only search for events with our own user id. var ids = [user._id]; if ((user.siteadmin & SITERIGHT_MANAGEUSERS) != 0) { diff --git a/views/default.handlebars b/views/default.handlebars index f61bd93b..3c300b86 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -14925,7 +14925,7 @@ if (xxdialogMode) return; var y = '', x = '', settings = JSON.parse(getstore('_ReportSettings', '{}')); - var options = { 1 : "Remote Sessions", 2 : "User Bandwidth Usage" } + var options = { 1 : "Remote Sessions", 2 : "User Traffic Usage" } for (var i in options) { y += ''; } x += addHtmlValue("Type", ''); @@ -15027,6 +15027,7 @@ if (i != 0) { reportCSV += '"' + csvClean(renderReportFormatCSV(i, r.groupFormat)) + '"'; } else { reportCSV += '""'; } for (var k in r.columns) { var style = ''; + if (r.columns[k].format != null) { style = 'white-space:nowrap;' } if (r.columns[k].align) { style = 'text-align:' + EscapeHtml(r.columns[k].align); } if (e[r.columns[k].id] != null) { x += '' + renderReportFormat(e[r.columns[k].id], r.columns[k].format) + ''; @@ -15091,8 +15092,8 @@ function renderReportFormat(v, f) { if (v == null) return ''; - if (f == 'datetime') { return printDateTime(new Date(v)).split(' ').join(' '); } - if (f == 'time') { return printTime(new Date(v)).split(' ').join(' '); } + if (f == 'datetime') { return printDateTime(new Date(v)); } + if (f == 'time') { return printTime(new Date(v)); } if (f == 'protocol') { if (v == 1) return "Terminal"; if (v == 2) return "Desktop";