mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
Merge pull request #5600 from gisikw/remove-apdex-check
Remove apdex check from middleware until NR is back
This commit is contained in:
commit
fefc8ee732
1 changed files with 4 additions and 4 deletions
|
|
@ -47,8 +47,8 @@ module.exports.domainMiddleware = function(server,mongoose) {
|
|||
score = ts[ts.length-1].values.score,
|
||||
apdexBad = score < .75 || score == 1,
|
||||
memory = os.freemem() / os.totalmem(),
|
||||
memoryHigh = false; //memory < 0.1;
|
||||
if (apdexBad || memoryHigh) throw "[Memory Leak] Apdex="+score+" Memory="+parseFloat(memory).toFixed(3)+" Time="+moment().format();
|
||||
memoryHigh = memory < 0.1;
|
||||
if (/*apdexBad || */memoryHigh) throw "[Memory Leak] Apdex="+score+" Memory="+parseFloat(memory).toFixed(3)+" Time="+moment().format();
|
||||
})
|
||||
}, mins*60*1000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue