Update libs/events/utils.js

video-slicer-reencoder
Katie Roberts 2022-09-12 00:00:08 +00:00
parent 8263aa0e8a
commit 15fa2e8446
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ module.exports = (s,config,lang,app,io) => {
runRecord()
return
}
const secondBefore = (parseInt(monitorDetails.detector_buffer_seconds_before) || 5) + 1
const secondBefore = (roundNearest5(parseInt(monitorDetails.detector_buffer_seconds_before)) || 5) + 1
s.insertCompletedVideo(monitorConfig,{
file : filename,
endTime: moment(new Date()).subtract(secondBefore,'seconds')._d,