Skip to content

Commit

Permalink
feat: 项目统计过滤数据为0的记录TencentBlueKing#2021 (TencentBlueKing#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacYL authored Apr 12, 2024
1 parent 5041479 commit 63414da
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ open class ProjectRepoMetricsStatJob(
statDate: LocalDateTime,
projectMetric: TProjectMetrics,
) {
if (projectMetric.capSize <=0 && projectMetric.nodeNum <=0) return
// insert project repo metrics
val criteria = Criteria.where(CREATED_DATE).isEqualTo(statDate).and(PROJECT).`is`(projectMetric.projectId)
mongoTemplate.remove(Query(criteria), COLLECTION_NAME_PROJECT_METRICS)
Expand Down

0 comments on commit 63414da

Please sign in to comment.