Skip to content

Commit

Permalink
[query] Remove single series error from M3
Browse files Browse the repository at this point in the history
  • Loading branch information
teddywahle authored Nov 7, 2020
1 parent c7392e1 commit 6551b98
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/query/graphite/native/builtin_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1031,11 +1031,6 @@ func asPercent(ctx *common.Context, input singlePathSpec, total genericInterface
toNormalize = input.Values
tf = func(idx int, _ *ts.Series) float64 { return totalBySum(normalized, idx) }
} else {
// check total is a single-series list and normalize all of them
if total.Len() != 1 {
err := errors.NewInvalidParamsError(errors.New("total must be a single series"))
return ts.NewSeriesList(), err
}
if len(nodes) > 0 {
// group the series by specified nodes and then sum those groups
groupedTotal, err := groupByNodes(ctx, input, "sum", nodes...)
Expand Down

0 comments on commit 6551b98

Please sign in to comment.