合并分支 'test' 到 'master'
1. 时间优化 查看合并请求 !11
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -45,7 +45,8 @@ func NextTime(now0 time.Time, start time.Time, kpiCycle int) time.Time { | @@ -45,7 +45,8 @@ func NextTime(now0 time.Time, start time.Time, kpiCycle int) time.Time { | ||
45 | var nextTime time.Time | 45 | var nextTime time.Time |
46 | switch kpiCycle { | 46 | switch kpiCycle { |
47 | case domain.KpiCycleDay: | 47 | case domain.KpiCycleDay: |
48 | - nextTime = timeconv.AddDate(now0, 0, 0, 0) // 当前时间的0点开始发送 | 48 | + nextTime = now0 // 当前时间的0点开始发送 |
49 | + //nextTime = timeconv.AddDate(now0, 0, 0, 0) // 当前时间的0点开始发送 | ||
49 | break | 50 | break |
50 | case domain.KpiCycleWeek: | 51 | case domain.KpiCycleWeek: |
51 | offsetSeconds := int64(now0.Sub(start0).Seconds()) | 52 | offsetSeconds := int64(now0.Sub(start0).Seconds()) |
-
请 注册 或 登录 后发表评论