set default seconds Inward on raw snap to 5
parent
2f72d4e1e8
commit
d038de233f
|
@ -2911,7 +2911,7 @@ module.exports = function(s,config,lang){
|
|||
"name": "detail=snap_seconds_inward",
|
||||
"field": lang['Delay for Snapshot'],
|
||||
"description": lang[lang["fieldTextSnapSecondsInward"]],
|
||||
"default": "0"
|
||||
"default": "5"
|
||||
},
|
||||
{
|
||||
hidden: true,
|
||||
|
|
|
@ -158,7 +158,7 @@ module.exports = function(s,config,lang){
|
|||
var outputOptions = []
|
||||
var streamDir = s.dir.streams + monitor.ke + '/' + monitor.mid + '/'
|
||||
var url = options.url
|
||||
var secondsInward = options.secondsInward || '0'
|
||||
var secondsInward = options.secondsInward || '5'
|
||||
if(secondsInward.length === 1 && !isNaN(secondsInward))secondsInward = '0' + secondsInward;
|
||||
var dynamicTimeout = (secondsInward * 1000) + 5000;
|
||||
if(options.flags)outputOptions.push(options.flags)
|
||||
|
|
Loading…
Reference in New Issue