|
@@ -124,10 +124,12 @@ func (l *CronTask) analyze() {
|
|
}
|
|
}
|
|
|
|
|
|
var predicates []predicate.UsageDetail
|
|
var predicates []predicate.UsageDetail
|
|
- predicates = append(predicates, usagedetail.TypeIn(1, 3))
|
|
|
|
|
|
+ predicates = append(predicates, usagedetail.TypeIn(1, 3, 4, 6))
|
|
predicates = append(predicates, usagedetail.AppIn(1, 3, 4, 5))
|
|
predicates = append(predicates, usagedetail.AppIn(1, 3, 4, 5))
|
|
- yesterdayStart := time.Now().AddDate(0, 0, -1).Truncate(24 * time.Hour)
|
|
|
|
- yesterdayEnd := yesterdayStart.Add(24 * time.Hour)
|
|
|
|
|
|
+ //yesterdayStart := time.Now().AddDate(0, 0, -1).Truncate(24 * time.Hour)
|
|
|
|
+ //yesterdayEnd := yesterdayStart.Add(24 * time.Hour)
|
|
|
|
+ yesterdayEnd := time.Now().Truncate(24 * time.Hour)
|
|
|
|
+ yesterdayStart := yesterdayEnd.AddDate(0, 0, -1)
|
|
predicates = append(predicates, usagedetail.CreatedAtGTE(yesterdayStart))
|
|
predicates = append(predicates, usagedetail.CreatedAtGTE(yesterdayStart))
|
|
predicates = append(predicates, usagedetail.CreatedAtLT(yesterdayEnd))
|
|
predicates = append(predicates, usagedetail.CreatedAtLT(yesterdayEnd))
|
|
|
|
|