File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919)
2020
2121type appConfig struct {
22- LogLevel logrus.Level
22+ LogLevel logrus.Level
23+ SnapRestSeconds uint32
2324
2425 * UploadConfig
2526 * PlatformConfig
Original file line number Diff line number Diff line change 44 "sync/atomic"
55 "time"
66
7+ "github.com/go-olive/olive/src/config"
78 "github.com/go-olive/olive/src/dispatcher"
89 "github.com/go-olive/olive/src/engine"
910 "github.com/go-olive/olive/src/enum"
@@ -100,7 +101,7 @@ func (m *monitor) refresh() {
100101
101102func (m * monitor ) run () {
102103 t := jitterbug .New (
103- time .Second * 15 ,
104+ time .Second * time . Duration ( config . APP . SnapRestSeconds ) ,
104105 & jitterbug.Norm {Stdev : time .Second * 3 },
105106 )
106107 defer t .Stop ()
Original file line number Diff line number Diff line change 11LogLevel = 5
2+ SnapRestSeconds = 15
23
34[UploadConfig ]
45Enable = false
You can’t perform that action at this time.
0 commit comments