Browse Source

logging and comment cleanup

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
9b3b2dbfba
  1. 2
      app.js
  2. 2
      app/utils.js

2
app.js

@ -233,7 +233,7 @@ app.use(function(req, res, next) {
}
}
// theme
// homepage banner
if (!req.session.hideHomepageBanner) {
var cookieValue = req.cookies['user-setting-hideHomepageBanner'];

2
app/utils.js

@ -173,7 +173,7 @@ function logMemoryUsage() {
var mbTotal = process.memoryUsage().heapTotal / 1024 / 1024;
mbTotal = Math.round(mbTotal * 100) / 100;
console.log("memoryUsage: heapUsed=" + mbUsed + ", heapTotal=" + mbTotal + ", ratio=" + parseInt(mbUsed / mbTotal * 100));
//console.log("memoryUsage: heapUsed=" + mbUsed + ", heapTotal=" + mbTotal + ", ratio=" + parseInt(mbUsed / mbTotal * 100));
}
function getMinerFromCoinbaseTx(tx) {

Loading…
Cancel
Save