From 9cc14b570894f4a0aa333b6e3ca27780eb5835f6 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 9 Sep 2017 12:11:55 -0600 Subject: [PATCH] Use nicely formatted number values for MCI stats --- core/predefined_mci.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/predefined_mci.js b/core/predefined_mci.js index ac8cffe7..7fe921b3 100644 --- a/core/predefined_mci.js +++ b/core/predefined_mci.js @@ -45,11 +45,11 @@ function getUserRatio(client, propA, propB) { } function userStatAsString(client, statName, defaultValue) { - return (StatLog.getUserStat(client.user, statName) || defaultValue).toString(); + return (StatLog.getUserStat(client.user, statName) || defaultValue).toLocaleString(); } function sysStatAsString(statName, defaultValue) { - return (StatLog.getSystemStat(statName) || defaultValue).toString(); + return (StatLog.getSystemStat(statName) || defaultValue).toLocaleString(); } const PREDEFINED_MCI_GENERATORS = { @@ -177,7 +177,7 @@ const PREDEFINED_MCI_GENERATORS = { AN : function activeNodes() { return clientConnections.getActiveConnections().length.toString(); }, - TC : function totalCalls() { return StatLog.getSystemStat('login_count').toString(); }, + TC : function totalCalls() { return StatLog.getSystemStat('login_count').toLocaleString(); }, RR : function randomRumor() { // start the process of picking another random one @@ -203,7 +203,7 @@ const PREDEFINED_MCI_GENERATORS = { }, TF : function totalFilesOnSystem() { const areaStats = StatLog.getSystemStat('file_base_area_stats'); - return _.get(areaStats, 'totalFiles', 0).toString(); + return _.get(areaStats, 'totalFiles', 0).toLocaleString(); }, TB : function totalBytesOnSystem() { const areaStats = StatLog.getSystemStat('file_base_area_stats');