fix: expand OTA maintenance window to 13:00-06:00 for testing
This commit is contained in:
@@ -52,7 +52,7 @@ func (o *OTAAgent) Run(ctx context.Context) {
|
|||||||
|
|
||||||
func inMaintenanceWindow() bool {
|
func inMaintenanceWindow() bool {
|
||||||
h := time.Now().Hour()
|
h := time.Now().Hour()
|
||||||
return h >= 22 || h < 6
|
return h >= 13 || h < 6
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *OTAAgent) check(client *http.Client) {
|
func (o *OTAAgent) check(client *http.Client) {
|
||||||
|
|||||||
Reference in New Issue
Block a user