Wideband autonomous SDR analysis engine forked from sdr-visual-suite
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

22 行
439B

  1. package pipeline
  2. import "time"
  3. func expireHold(hold map[int64]time.Time, now time.Time) map[int64]struct{} {
  4. if len(hold) == 0 {
  5. return map[int64]struct{}{}
  6. }
  7. expired := map[int64]struct{}{}
  8. for id, until := range hold {
  9. if now.After(until) {
  10. expired[id] = struct{}{}
  11. delete(hold, id)
  12. }
  13. }
  14. return expired
  15. }
  16. func isProtectedTier(tier string) bool {
  17. return priorityTierRank(tier) >= priorityTierRank(PriorityTierHigh)
  18. }