Browse Source

fix-bug

tags/v1.22.11.3^2
liuzx 3 years ago
parent
commit
25f3e7f4e3
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      routers/repo/cloudbrain_statistic.go

+ 1
- 2
routers/repo/cloudbrain_statistic.go View File

@@ -26,9 +26,8 @@ func CloudbrainDurationStatisticHour() {
} else { } else {
statisticTime = currentTime statisticTime = currentTime
} }
deleteBeginTime := time.Unix(int64(recordDurationUpdateTime[0].DateTime), 0)


err = models.DeleteCloudbrainDurationStatistic(timeutil.TimeStamp(deleteBeginTime.Unix()), timeutil.TimeStamp(currentTime.Unix()))
err = models.DeleteCloudbrainDurationStatistic(timeutil.TimeStamp(statisticTime.Unix()), timeutil.TimeStamp(currentTime.Unix()))
if err != nil { if err != nil {
log.Error("DeleteCloudbrainDurationStatistic failed", err) log.Error("DeleteCloudbrainDurationStatistic failed", err)
} }


Loading…
Cancel
Save