Browse Source

update

tags/v1.22.6.1^2
liuzx 3 years ago
parent
commit
60d6d55107
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      routers/api/v1/repo/cloudbrain_dashboard.go

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

@@ -195,7 +195,6 @@ func GetAllCloudbrainsTrend(ctx *context.Context) {
}

func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) {

recordBeginTime, err := getBrainRecordBeginTime()
if err != nil {
log.Error("Can not get record begin time", err)
@@ -216,7 +215,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) {
if pageSize <= 0 {
pageSize = DEFAULT_PAGE_SIZE
}

debugOneCount, err := models.GenerateDebugOneCount(beginTime, endTime)
if err != nil {
log.Error("Can not query debugOneCount.", err)
@@ -253,7 +251,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) {
ctx.Error(http.StatusBadRequest, ctx.Tr("inferenceTwoCount_get_error"))
return
}

cloudbrainsPeriodData := CloudbrainsPeriodData{
DebugOneCount: debugOneCount,
BenchmarkOneCount: benchmarkOneCount,
@@ -271,7 +268,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) {
fmt.Printf("testtime is:%s", testtime)

ctx.JSON(http.StatusOK, cloudbrainsPeriodData)

}

func getCloudbrainCount(beginTime time.Time, endTime time.Time) (int64, int64, int64, int64, int64, int64, int64, int64, int64, error) {


Loading…
Cancel
Save