Skip to content

Commit

Permalink
Avoid infinite loop on summarize() (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnangle authored Oct 26, 2022
1 parent d6bda76 commit 7b12026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/graphite/render/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5390,6 +5390,9 @@ def summarize(requestContext, seriesList, intervalString, func='sum', alignToFro


def _summarizeValues(series, func, interval, newStart=None, newEnd=None):
if interval == 0:
raise InputParameterError("_summarizeValues(): interval parsed to 0")

if newStart is None:
newStart = series.start
if newEnd is None:
Expand Down

0 comments on commit 7b12026

Please sign in to comment.