Browse Source

update

master
public_host 2 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)
for e := range ta {
//当天具体时间判断
isInTimeOfDayStart := time.Now()
if !isInTimeOfDay(t, ta[e]) {
log.Println("isInTimeOfDay耗时:", time.Since(isInTimeOfDayStart))
continue
}
log.Println("isInTimeOfDay耗时:", time.Since(isInTimeOfDayStart))
//扩展标签判断
isInExpandTagsStart := time.Now()
if !isInExpandTags(ta[e], strings.Join(expandTags, "-")) {
log.Println("isInExpandTags耗时:", time.Since(isInExpandTagsStart))
continue
}
log.Println("isInExpandTags耗时:", time.Since(isInExpandTagsStart))
switch ta[e].Type {
case TimeArrowTypeDayOfWeek:

Loading…
Cancel
Save