Browse Source

update

master
public_host 3 days ago
parent
commit
5c54cb6dff
  1. 6
      core.go

6
core.go

@ -490,20 +490,14 @@ func (th *TimeArrowHelper) GetHitTimeArrow(t time.Time, group string, expandTags
log.Println("taSize: ", taSize) log.Println("taSize: ", taSize)
for e := range ta { for e := range ta {
//当天具体时间判断 //当天具体时间判断
isInTimeOfDayStart := time.Now()
if !isInTimeOfDay(t, ta[e]) { if !isInTimeOfDay(t, ta[e]) {
log.Println("isInTimeOfDay耗时:", time.Since(isInTimeOfDayStart))
continue continue
} }
log.Println("isInTimeOfDay耗时:", time.Since(isInTimeOfDayStart))
//扩展标签判断 //扩展标签判断
isInExpandTagsStart := time.Now()
if !isInExpandTags(ta[e], strings.Join(expandTags, "-")) { if !isInExpandTags(ta[e], strings.Join(expandTags, "-")) {
log.Println("isInExpandTags耗时:", time.Since(isInExpandTagsStart))
continue continue
} }
log.Println("isInExpandTags耗时:", time.Since(isInExpandTagsStart))
switch ta[e].Type { switch ta[e].Type {
case TimeArrowTypeDayOfWeek: case TimeArrowTypeDayOfWeek:

Loading…
Cancel
Save