Skip to content

Commit

Permalink
optimize log
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed Jun 19, 2023
1 parent 20a9834 commit c275702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/recommendation/recommender/resource/recommend.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (rr *ResourceRecommender) Recommend(ctx *framework.RecommendationContext) e
if rr.HistoryCompletionCheck {
completion, existDays, err := utils.DetectTimestampCompletion(tsList, rr.CpuModelHistoryLength, time.Now())
if !completion || err != nil {
return fmt.Errorf("%s: cpu timestamps aren't completed, expect days %s actual %d ", metricNamer.BuildUniqueKey(), rr.CpuModelHistoryLength, existDays)
return fmt.Errorf("%s: cpu timestamps are not completed, expect %s actual %d days", metricNamer.BuildUniqueKey(), rr.CpuModelHistoryLength, existDays)
}
}

Expand All @@ -145,7 +145,7 @@ func (rr *ResourceRecommender) Recommend(ctx *framework.RecommendationContext) e
if rr.HistoryCompletionCheck {
completion, existDays, err := utils.DetectTimestampCompletion(tsList, rr.MemHistoryLength, time.Now())
if !completion || err != nil {
return fmt.Errorf("%s: memory timestamps aren't completed, expect days %s actual %d ", metricNamer.BuildUniqueKey(), rr.MemHistoryLength, existDays)
return fmt.Errorf("%s: memory timestamps are not completed, expect %s actual %d days ", metricNamer.BuildUniqueKey(), rr.MemHistoryLength, existDays)
}
}

Expand Down

0 comments on commit c275702

Please sign in to comment.