|
|
|
@@ -1685,7 +1685,7 @@ func getDurationStatistic(beginTime time.Time, endTime time.Time) (models.Durati |
|
|
|
return OpenIDurationRate, C2NetDurationRate, 0 |
|
|
|
} |
|
|
|
for _, cloudbrainStatistic := range cardDurationStatistics { |
|
|
|
aiCenterName := repo.GetAiCenterNameByCode(cloudbrainStatistic.AiCenterCode) |
|
|
|
aiCenterName := cloudbrainStatistic.AiCenterCode + "/" + repo.GetAiCenterNameByCode(cloudbrainStatistic.AiCenterCode) |
|
|
|
if cloudbrainStatistic.Cluster == models.OpenICluster { |
|
|
|
if _, ok := OpenITotalDuration[aiCenterName]; !ok { |
|
|
|
OpenITotalDuration[aiCenterName] = cloudbrainStatistic.CardsTotalDuration |
|
|
|
@@ -1717,7 +1717,7 @@ func getDurationStatistic(beginTime time.Time, endTime time.Time) (models.Durati |
|
|
|
return OpenIDurationRate, C2NetDurationRate, 0 |
|
|
|
} |
|
|
|
for _, v := range ResourceAiCenterRes { |
|
|
|
aiCenterName := repo.GetAiCenterNameByCode(v.AiCenterCode) |
|
|
|
aiCenterName := v.AiCenterCode + "/" + repo.GetAiCenterNameByCode(v.AiCenterCode) |
|
|
|
if cutString(v.AiCenterCode, 4) == cutString(models.AICenterOfCloudBrainOne, 4) { |
|
|
|
if _, ok := OpenIUsageDuration[aiCenterName]; !ok { |
|
|
|
OpenIUsageDuration[aiCenterName] = 0 |
|
|
|
|