implemented some timing so that it doesn't start straight away

This commit is contained in:
Saxon1 2018-04-19 19:11:49 +09:30
parent f0b3eeeb21
commit 0be8293ad9
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ const (
defaultRunDuration = 2 * 43200 defaultRunDuration = 2 * 43200
noOfConfigconfigFlags = 19 noOfConfigconfigFlags = 19
revidStopTime = 5 revidStopTime = 5
prepTime = 20
) )
const ( const (
@ -219,6 +220,7 @@ func main() {
config.Timeout = *configFlags[timeoutPtr] config.Timeout = *configFlags[timeoutPtr]
config.IntraRefreshPeriod = *configFlags[intraRefreshPeriodPtr] config.IntraRefreshPeriod = *configFlags[intraRefreshPeriodPtr]
time.Sleep(time.Duration(prepTime) * time.Second)
createRevidInstance() createRevidInstance()
revidInst.Start() revidInst.Start()