allow swapping pam-diff engine

cron-addstorage-fix
Moe 2021-10-15 13:43:00 -07:00
parent 7071d087d6
commit dc3f94e37c
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
const P2P = require('pipe2pam')
const PamDiff = require('pam-diff')
module.exports = function(jsonData,pamDiffResponder){
let PamDiff = require('pam-diff')
module.exports = function(jsonData,pamDiffResponder,alternatePamDiff){
if(alternatePamDiff)PamDiff = alternatePamDiff;
const noiseFilterArray = {};
const config = jsonData.globalInfo.config
const completeMonitorConfig = jsonData.rawMonitorConfig
@ -390,5 +391,6 @@ module.exports = function(jsonData,pamDiffResponder){
regionConfidenceMaximums,
regionTriggerThresholds,
mergeTriggers,
pamDiff,
}
}