Browse Source

fix-3534

fix-3534
liuzx 2 years ago
parent
commit
785f1020d5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/api/v1/repo/cloudbrain_dashboard.go

+ 3
- 0
routers/api/v1/repo/cloudbrain_dashboard.go View File

@@ -1149,6 +1149,9 @@ func getMonthCloudbrainNum(beginTime time.Time, endTime time.Time) ([]DateCloudb
log.Error("Getcloudbrains failed:%v", err)
return nil, err
}
if endTime.Before(endTimeTemp) {
endTimeTemp = endTime
}
for endTimeTemp.Before(endTime) || endTimeTemp.Equal(endTime) {
cloudOneJobTypeRes, cloudTwoJobTypeRes, intelligentNetJobTypeRes, cDCenterJobTypeRes, cloudBrainPeriodNum, cloudBrainComputeResource := getCloudbrainCount(beginTime, endTimeTemp, cloudbrains)
monthCloudbrainNum = append(monthCloudbrainNum, DateCloudbrainNum{


Loading…
Cancel
Save