|
|
@@ -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) |
|
|
} |
|
|
} |
|
|
|