fix: expand OTA maintenance window to 13:00-06:00 for testing

This commit is contained in:
2026-05-09 13:50:07 +08:00
parent 4cb160b88c
commit cde3572f79

View File

@@ -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) {