inpsect module loading

This commit is contained in:
AJ ONeal 2015-03-29 03:29:26 +00:00
parent 7151868c62
commit 45285b8409
1 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,24 @@
console.log('\n\n\nWelcome to WALNUT!'); console.log('\n\n\nWelcome to WALNUT!');
var fs = require('fs');
var daplieReadFile = fs.readFileSync;
var time = 0;
/*
fs.readFileSync = function (filename) {
var now = Date.now();
var data = daplieReadFile.apply(fs, arguments);
var t;
t = (Date.now() - now);
time += t;
console.log('loaded "' + filename + '" in ' + t + 'ms (total ' + time + 'ms)');
return data;
};
*/
//var config = require('./device.json'); //var config = require('./device.json');
var securePort = process.argv[2] || 443; var securePort = process.argv[2] || 443;
var insecurePort = process.argv[3] || 80; var insecurePort = process.argv[3] || 80;