diff --git a/routers/repo/grampus.go b/routers/repo/grampus.go index 339895b02..eedca8ad9 100755 --- a/routers/repo/grampus.go +++ b/routers/repo/grampus.go @@ -1,7 +1,6 @@ package repo import ( - "code.gitea.io/gitea/services/lock" "encoding/json" "errors" "fmt" @@ -12,6 +11,8 @@ import ( "strconv" "strings" + "code.gitea.io/gitea/services/lock" + "code.gitea.io/gitea/modules/urfs_client/urchin" "code.gitea.io/gitea/routers/response" @@ -1456,7 +1457,7 @@ func GrampusMetrics(ctx *context.Context) { } ctx.JSON(http.StatusOK, map[string]interface{}{ "JobID": jobID, - "Interval": result.Interval, + "Interval": 0, "MetricsInfo": result.MetricsInfo, })