diff --git a/config.json b/config.json index f602d64..c32b5ca 100644 --- a/config.json +++ b/config.json @@ -20,7 +20,7 @@ "enabled": true, "siteTitle": "Cryppit", "port": 80, - "statUpdateInterval": 5, + "statUpdateInterval": 1.5, "hashrateWindow": 600 }, "proxy": { diff --git a/init.js b/init.js index 972f554..a6c99f7 100644 --- a/init.js +++ b/init.js @@ -2,6 +2,7 @@ var fs = require('fs'); var os = require('os'); var cluster = require('cluster'); +require('./libs/algoProperties.js'); var async = require('async'); var posix = require('posix'); diff --git a/libs/algoProperties.js b/libs/algoProperties.js new file mode 100644 index 0000000..13dbd58 --- /dev/null +++ b/libs/algoProperties.js @@ -0,0 +1,4 @@ +global.algos = { + +}; +//lets put all algo related properties in here as a global object. also put this in stratum module then borrow it for the portal. \ No newline at end of file diff --git a/libs/logUtil.js b/libs/logUtil.js index 294b351..7d25275 100644 --- a/libs/logUtil.js +++ b/libs/logUtil.js @@ -4,6 +4,8 @@ var colors = require('colors'); var severityToColor = function(severity, text) { switch(severity) { + case 'special': + return text.cyan.underline; case 'debug': return text.green; case 'warning': @@ -19,7 +21,8 @@ var severityToColor = function(severity, text) { var severityValues = { 'debug': 1, 'warning': 2, - 'error': 3 + 'error': 3, + 'special': 4 };