Skip to content

Commit

Permalink
fix when checkInterval not set , set 1800 as default
Browse files Browse the repository at this point in the history
  • Loading branch information
afghanistanyn committed Dec 19, 2019
1 parent 55def64 commit d51909e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func Legu(pkgName string, pkgUrl string, pkgMd5 string) {
waitTime := conf.Shield.ShieldTimeout
checkInterval := conf.Shield.CheckInterval

if waitTime == 0 {
waitTime = 1800
}

if checkInterval == 0 {
checkInterval = 30
}
Expand Down

0 comments on commit d51909e

Please sign in to comment.