diff --git a/lib/appmetrics-dash.js b/lib/appmetrics-dash.js index bdefe3f..2bca4f9 100644 --- a/lib/appmetrics-dash.js +++ b/lib/appmetrics-dash.js @@ -140,7 +140,7 @@ exports.monitor = function(options) { if (!options.server) { // Create and use our own express server on the user-specified port/host. - var port = options.port || 3001; // Set a default port if one is not supplied + var port = options.port || 3001; // Set a default port if one is not supplied var host = options.host; var app = express(); server = require('http').Server(app); diff --git a/public/profiling.js b/public/profiling.js index a7db8a4..2676a62 100644 --- a/public/profiling.js +++ b/public/profiling.js @@ -102,7 +102,7 @@ socket.on('profiling', (profilingSample) => { // console.log("Adding sample: " + profiling_row.time); // console.dir(profiling_row); - let profiling_row = JSON.parse(profilingSample); // parses the data into a JSON array + let profiling_row = JSON.parse(profilingSample); // parses the data into a JSON array let indexed_nodes = {}; // Index this so we can find parents faster. profiling_row.functions.map((node) => { indexed_nodes[node.self] = node; });