tempfixes until I get my computer back

This commit is contained in:
Your Name
2018-07-15 15:34:15 -04:00
parent 4090277c6b
commit 05860096cd
6 changed files with 100 additions and 60 deletions

View File

@@ -5,6 +5,7 @@ path = require('path'),
http = require('http'),
port = 8080,
//farmhash = require('farmhash'),
uniqid = require('uniqid'),
num_processes = require('os').cpus().length;
publicPath = path.join(__dirname, 'public');
@@ -49,7 +50,8 @@ function startClustered(redis_enabled) {
var worker_index = function(ip, len) {
//console.log(ip);
var s = '';
for (var i = 0, _len = ip.length; i < _len; i++) {
if(ip == undefined) ip = uniqid.time();
for (var i = 0, _len = ip.length; i < _len; i++) {
if(!isNaN(ip[i])) {
s += ip[i];
}