Skip to content

Commit b6958d6

Browse files
author
mervynwang
committed
fix cpu recommend zero
1 parent 1a48e08 commit b6958d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/prediction/percentile/prediction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (p *percentilePrediction) getPredictedValuesFromSignals(queryExpr string, s
7171

7272
if cfg.aggregated {
7373
signal := signals[keyAll]
74-
if signal != nil {
74+
if signal != nil && signal.totalSamplesCount > 0 {
7575
sample := common.Sample{
7676
Value: estimator.GetEstimation(signal.histogram),
7777
Timestamp: now,

0 commit comments

Comments
 (0)