package osupdates import ( "time" "gitea.dooplex.hu/admin/felhom-hub/internal/store" ) // notDeliberatelyOff drops the hosts the household switched off with „A gép kikapcsolása" (R-998, doc 14) while the // 14-day hold lasts: a box that is off cannot run its OS leg, take a new agent or bundle, or restart for a kernel — // alarming about it, or mailing „tonight your box restarts", would be noise. After the hold they count again. func notDeliberatelyOff(st *store.Store, hosts []store.Host, now time.Time) []store.Host { out := hosts[:0:0] for _, h := range hosts { if store.DeliberateOffHeld(st.HostDeliberateOffAt(h.HostID), now) { continue } out = append(out, h) } return out }