changed interval to seconds
This commit is contained in:
21
main.go
21
main.go
@@ -23,15 +23,15 @@ type Conf struct {
|
||||
Min int `yaml:"min"`
|
||||
Step int `yaml:"step"`
|
||||
} `yaml:"bandwidth"`
|
||||
Interval float64 `yaml:"interval"`
|
||||
Host string `yaml:"host"`
|
||||
PPP int `yaml:"ppp"`
|
||||
ConformationPPP int `yaml:"conformation_ppp"`
|
||||
LogLevel string `yaml:"log_level"`
|
||||
UploadInterface string `yaml:"upload_interface"`
|
||||
CakeOptions string `yaml:"cake_options"`
|
||||
ThrottlePingThreshold int64 `yaml:"throttle_ping_threshold"`
|
||||
TryRestoringAfter int `yaml:"try_restoring_after"`
|
||||
Interval int `yaml:"interval"`
|
||||
Host string `yaml:"host"`
|
||||
PPP int `yaml:"ppp"`
|
||||
ConformationPPP int `yaml:"conformation_ppp"`
|
||||
LogLevel string `yaml:"log_level"`
|
||||
UploadInterface string `yaml:"upload_interface"`
|
||||
CakeOptions string `yaml:"cake_options"`
|
||||
ThrottlePingThreshold int64 `yaml:"throttle_ping_threshold"`
|
||||
TryRestoringAfter int `yaml:"try_restoring_after"`
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -171,7 +171,8 @@ func (m UploadManager) pingWorker() error {
|
||||
}
|
||||
}
|
||||
}
|
||||
time.Sleep(time.Duration(conf.Interval) * time.Minute)
|
||||
log.Debugf("sleep for %s", time.Duration(conf.Interval)*time.Second)
|
||||
time.Sleep(time.Duration(conf.Interval) * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user